public interface IdentityManagement<T>
| Modifier and Type | Interface and Description |
|---|---|
static interface |
IdentityManagement.GrantMethods<T>
GrantMethods is a builder to apply roles to User
|
| Modifier and Type | Method and Description |
|---|---|
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
|
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 - RuntimeExceptionT 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()
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.