|
aerogear-security 1.1.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()
|
String |
getSecret()
|
IdentityManagement.GrantMethods |
grant(String... roles)
This method allows to specify which roles must be assigned to User |
boolean |
hasRoles(Set<String> roles)
|
void |
remove(String username)
Remove an 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.
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)
|
aerogear-security 1.1.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||