|
aerogear-security 1.3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IdentityManagement<T>
IdentityManagement allows to assign a set of roles to User on Identity Manager provider
| Nested Class Summary | |
|---|---|
static interface |
IdentityManagement.GrantMethods<T>
GrantMethods is a builder to apply roles to User |
| Method Summary | |
|---|---|
void |
create(T user,
String password)
This method creates a new User |
List<T> |
findAllByRole(String roleName)
Get All the users |
T |
findById(long id)
Find an User by the id specified |
T |
findByUsername(String username)
Find an User by the username specified |
String |
getLogin()
Retrieve the logged user name |
String |
getSecret()
Represents the generated TOTP secret for the current User logged in. |
IdentityManagement.GrantMethods |
grant(String... roles)
This method allows to specify which roles must be assigned to User |
boolean |
hasRoles(Set<String> roles)
Check if a logged in user has the roles provided |
void |
remove(String username)
Remove an User |
void |
reset(T user,
String currentPassword,
String newPassword)
Reset user' password |
IdentityManagement.GrantMethods |
revoke(String... roles)
This method allows to revoke which roles must be revoked to User |
| Method Detail |
|---|
IdentityManagement.GrantMethods grant(String... roles)
roles - A list of roles.
IdentityManagement.GrantMethods is a builder which a allows to apply a list of roles to the specified User.IdentityManagement.GrantMethods revoke(String... roles)
roles - A list of roles.
IdentityManagement.GrantMethods is a builder which a allows to apply a list of roles to the specified User.
void reset(T user,
String currentPassword,
String newPassword)
user - User credentialcurrentPassword - current password already registerednewPassword - new password
Exception
T findByUsername(String username)
throws RuntimeException
username -
RuntimeException
T findById(long id)
throws RuntimeException
id -
RuntimeExceptionvoid remove(String username)
username - List<T> findAllByRole(String roleName)
roleName -
void create(T user,
String password)
user - where the generic type represents a User into the systempassword - input provided by UserString getSecret()
String getLogin()
boolean hasRoles(Set<String> roles)
roles - roles to be checked
|
aerogear-security 1.3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||