| 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,
boolean isSSOEnabled,
String ssoLogoutURL,
String scope,
String jwksUrl) |
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,
boolean isSSOEnabled,
String ssoLogoutURL,
String scope,
String jwksUrl,
boolean isFilteredGroupsEnabled) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
authCodeLogin(String appContext,
String code) |
Map<String,String> |
authCodeLogin(String appContext,
String code,
Map<String,String> properties) |
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.
|
List<Role> |
getAllRolesOfTenant(String username)
This returns all the roles available in the user store for the given tenant.
|
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.
|
Map<String,String> |
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, boolean isSSOEnabled, String ssoLogoutURL, String scope, String jwksUrl)
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, boolean isSSOEnabled, String ssoLogoutURL, String scope, String jwksUrl, boolean isFilteredGroupsEnabled)
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 List<Role> getAllRolesOfTenant(String username) throws IdPClientException
IdPClientgetAllRolesOfTenant in interface IdPClientusername - name of the userIdPClientException - 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 Map<String,String> authCodeLogin(String appContext, String code, Map<String,String> properties) throws IdPClientException
IdPClientExceptionpublic Map<String,String> 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 © 2023 WSO2. All rights reserved.