| Constructor and Description |
|---|
ExternalIdPClient(String baseUrl,
String authorizeEndpoint,
String grantType,
String signinAlgo,
String adminRoleDisplayName,
Map<String,OAuthApplicationInfo> oAuthAppInfoMap,
int cacheTimeout,
OAuthAppDAO oAuthAppDAO,
DCRMServiceStub dcrmServiceStub,
OAuth2ServiceStubs oAuth2ServiceStubs,
SCIM2ServiceStub scimServiceStub,
String defaultUserStore) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
authCodeLogin(String appContext,
String code) |
String |
authenticate(String token)
This will authenticate user based on the token.
|
Role |
getAdminRole()
This returns the admin role of the user store.
|
List<Role> |
getAllRoles()
This returns all roles available in the user store.
|
User |
getUser(String name)
This returns the {User} object with the name passed in the parameter.
|
List<Role> |
getUserRoles(String name)
This returns a list of the roles assigned to the user.
|
void |
init(String kmUserName) |
Map<String,String> |
login(Map<String,String> properties)
This returns the login parameters of a login request.
|
void |
logout(Map<String,String> properties)
This invalidates the user session.
|
public ExternalIdPClient(String baseUrl, String authorizeEndpoint, String grantType, String signinAlgo, String adminRoleDisplayName, Map<String,OAuthApplicationInfo> oAuthAppInfoMap, int cacheTimeout, OAuthAppDAO oAuthAppDAO, DCRMServiceStub dcrmServiceStub, OAuth2ServiceStubs oAuth2ServiceStubs, SCIM2ServiceStub scimServiceStub, String defaultUserStore)
public void init(String kmUserName) throws IdPClientException
IdPClientExceptionpublic List<Role> getAllRoles() throws IdPClientException
IdPClientgetAllRoles in interface IdPClientIdPClientException - thrown when an error occurred when retrieving rolespublic Role getAdminRole() throws IdPClientException
IdPClientgetAdminRole in interface IdPClientIdPClientException - thrown when an error occurred when retrieving admin rolepublic User getUser(String name) throws IdPClientException
IdPClientgetUser in interface IdPClientname - UsernameIdPClientException - thrown when an error occurred when retrieving userpublic List<Role> getUserRoles(String name) throws IdPClientException
IdPClientgetUserRoles in interface IdPClientname - usernameIdPClientException - thrown when an error occurred when retrieving user rolepublic Map<String,String> login(Map<String,String> properties) throws IdPClientException
IdPClientlogin in interface IdPClientproperties - Map of properties that is needed for loginIdPClientException - thrown when an error occurred when loginpublic Map<String,String> authCodeLogin(String appContext, String code) throws IdPClientException
IdPClientExceptionpublic void logout(Map<String,String> properties) throws IdPClientException
IdPClientlogout in interface IdPClientproperties - Map of logout properties.IdPClientException - thrown when an error occurred when logoutpublic String authenticate(String token) throws AuthenticationException, IdPClientException
IdPClientauthenticate in interface IdPClienttoken - token used to identify user session.AuthenticationException - thrown when authentication failsIdPClientException - thrown when an error occurred when authenticatingCopyright © 2019 WSO2. All rights reserved.