| Constructor and Description |
|---|
LocalIdPClient(int sessionTimeOut,
int refreshTimeout,
List<LocalUser> users,
List<Role> roles,
Role adminRole) |
| 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.
|
public List<Role> getAllRoles()
IdPClientgetAllRoles in interface IdPClientpublic Role getAdminRole()
IdPClientgetAdminRole in interface IdPClientpublic User getUser(String name)
IdPClientpublic List<Role> getUserRoles(String name)
IdPClientgetUserRoles in interface IdPClientname - usernamepublic Map<String,String> login(Map<String,String> properties)
IdPClientpublic void logout(Map<String,String> properties)
IdPClientpublic String authenticate(String token) throws AuthenticationException
IdPClientauthenticate in interface IdPClienttoken - token used to identify user session.AuthenticationException - thrown when authentication failsCopyright © 2019 WSO2. All rights reserved.