|
aerogear-security-picketlink 1.2.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.aerogear.security.picketlink.authz.IdentityManagementImpl
@ApplicationScoped public class IdentityManagementImpl
IdentityManagement allows to assign a set of roles to User on Identity Manager provider
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.jboss.aerogear.security.authz.IdentityManagement |
|---|
org.jboss.aerogear.security.authz.IdentityManagement.GrantMethods<T> |
| Constructor Summary | |
|---|---|
IdentityManagementImpl()
|
|
| Method Summary | |
|---|---|
void |
create(org.picketlink.idm.model.basic.User user,
String password)
This method creates a new User |
List<org.picketlink.idm.model.basic.User> |
findAllByRole(String name)
Get All the users |
org.picketlink.idm.model.basic.User |
findById(long id)
Find an User by the id specified |
org.picketlink.idm.model.basic.User |
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. |
org.jboss.aerogear.security.authz.IdentityManagement.GrantMethods |
grant(String... roles)
This method allows to specify which roles must be assigned to User |
boolean |
hasRoles(Set<String> roles)
Role validation against the IDM |
void |
remove(String username)
Remove an User |
void |
reset(org.picketlink.idm.model.basic.User user,
String currentPassword,
String newPassword)
Reset user' password |
org.jboss.aerogear.security.authz.IdentityManagement.GrantMethods |
revoke(String... roles)
This method allows to revoke which roles must be revoked to User |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IdentityManagementImpl()
| Method Detail |
|---|
public org.jboss.aerogear.security.authz.IdentityManagement.GrantMethods grant(String... roles)
grant in interface org.jboss.aerogear.security.authz.IdentityManagement<org.picketlink.idm.model.basic.User>roles - The list of roles.
GrantMethods is a builder which a allows to apply a list of roles to the specified User.public org.jboss.aerogear.security.authz.IdentityManagement.GrantMethods revoke(String... roles)
revoke in interface org.jboss.aerogear.security.authz.IdentityManagement<org.picketlink.idm.model.basic.User>roles - The list of roles.
GrantMethods is a builder which a allows to revoke a list of roles to the specified User.
public org.picketlink.idm.model.basic.User findByUsername(String username)
throws RuntimeException
findByUsername in interface org.jboss.aerogear.security.authz.IdentityManagement<org.picketlink.idm.model.basic.User>username -
RuntimeExceptionpublic void remove(String username)
remove in interface org.jboss.aerogear.security.authz.IdentityManagement<org.picketlink.idm.model.basic.User>username -
public void reset(org.picketlink.idm.model.basic.User user,
String currentPassword,
String newPassword)
reset in interface org.jboss.aerogear.security.authz.IdentityManagement<org.picketlink.idm.model.basic.User>user - User credentialcurrentPassword - current password already registerednewPassword - new password
Exception
public void create(org.picketlink.idm.model.basic.User user,
String password)
create in interface org.jboss.aerogear.security.authz.IdentityManagement<org.picketlink.idm.model.basic.User>user - @Produces @Secret public String getSecret()
getSecret in interface org.jboss.aerogear.security.authz.IdentityManagement<org.picketlink.idm.model.basic.User>@Produces @LoggedUser public String getLogin()
getLogin in interface org.jboss.aerogear.security.authz.IdentityManagement<org.picketlink.idm.model.basic.User>public boolean hasRoles(Set<String> roles)
hasRoles in interface org.jboss.aerogear.security.authz.IdentityManagement<org.picketlink.idm.model.basic.User>roles - roles to be checked
public org.picketlink.idm.model.basic.User findById(long id)
throws RuntimeException
findById in interface org.jboss.aerogear.security.authz.IdentityManagement<org.picketlink.idm.model.basic.User>id -
RuntimeExceptionpublic List<org.picketlink.idm.model.basic.User> findAllByRole(String name)
findAllByRole in interface org.jboss.aerogear.security.authz.IdentityManagement<org.picketlink.idm.model.basic.User>name - Role name
|
aerogear-security-picketlink 1.2.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||