|
aerogear-security-picketlink 1.2.0 | |||||||||
| 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.sample.User user,
String password)
This method creates a new User |
List<org.picketlink.idm.model.sample.User> |
findAllByRole(String name)
|
org.picketlink.idm.model.sample.User |
findById(long id)
|
org.picketlink.idm.model.sample.User |
findByUsername(String username)
|
String |
getLogin()
|
String |
getSecret()
Represents the generated 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)
|
| 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.sample.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.picketlink.idm.model.sample.User findByUsername(String username)
throws RuntimeException
findByUsername in interface org.jboss.aerogear.security.authz.IdentityManagement<org.picketlink.idm.model.sample.User>RuntimeExceptionpublic void remove(String username)
remove in interface org.jboss.aerogear.security.authz.IdentityManagement<org.picketlink.idm.model.sample.User>
public void create(org.picketlink.idm.model.sample.User user,
String password)
create in interface org.jboss.aerogear.security.authz.IdentityManagement<org.picketlink.idm.model.sample.User>user - @Produces @Secret public String getSecret()
getSecret in interface org.jboss.aerogear.security.authz.IdentityManagement<org.picketlink.idm.model.sample.User>@Produces @LoggedUser public String getLogin()
getLogin in interface org.jboss.aerogear.security.authz.IdentityManagement<org.picketlink.idm.model.sample.User>public boolean hasRoles(Set<String> roles)
hasRoles in interface org.jboss.aerogear.security.authz.IdentityManagement<org.picketlink.idm.model.sample.User>roles - roles to be checked
public org.picketlink.idm.model.sample.User findById(long id)
throws RuntimeException
findById in interface org.jboss.aerogear.security.authz.IdentityManagement<org.picketlink.idm.model.sample.User>RuntimeExceptionpublic List<org.picketlink.idm.model.sample.User> findAllByRole(String name)
findAllByRole in interface org.jboss.aerogear.security.authz.IdentityManagement<org.picketlink.idm.model.sample.User>
|
aerogear-security-picketlink 1.2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||