public interface IdPClient
| Modifier and Type | Method and Description |
|---|---|
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.
|
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.
|
List<Role> getAllRoles() throws IdPClientException
IdPClientException - thrown when an error occurred when retrieving rolesRole getAdminRole() throws IdPClientException
IdPClientException - thrown when an error occurred when retrieving admin roleUser getUser(String name) throws IdPClientException
name - UsernameIdPClientException - thrown when an error occurred when retrieving userList<Role> getUserRoles(String name) throws IdPClientException
name - usernameIdPClientException - thrown when an error occurred when retrieving user roleMap<String,String> login(Map<String,String> properties) throws IdPClientException
properties - Map of properties that is needed for loginIdPClientException - thrown when an error occurred when loginvoid logout(Map<String,String> properties) throws IdPClientException
properties - Map of logout properties.IdPClientException - thrown when an error occurred when logoutString authenticate(String token) throws AuthenticationException, IdPClientException
token - token used to identify user session.AuthenticationException - thrown when authentication failsIdPClientException - thrown when an error occurred when authenticatingCopyright © 2019 WSO2. All rights reserved.