org.jboss.aerogear.security.picketlink.authz
Class GrantConfiguration
java.lang.Object
org.jboss.aerogear.security.picketlink.authz.GrantConfiguration
- All Implemented Interfaces:
- org.jboss.aerogear.security.authz.IdentityManagement.GrantMethods<org.picketlink.idm.model.sample.User>
@ApplicationScoped
public class GrantConfiguration
- extends Object
- implements org.jboss.aerogear.security.authz.IdentityManagement.GrantMethods<org.picketlink.idm.model.sample.User>
GrantMethods implementation is a builder to apply roles to User
|
Method Summary |
GrantConfiguration |
roles(String[] roles)
This method specifies which roles will be applied to User |
void |
to(String username)
This method applies roles specified on IdentityManagement.grant(String...) |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GrantConfiguration
public GrantConfiguration()
roles
public GrantConfiguration roles(String[] roles)
- This method specifies which roles will be applied to User
- Parameters:
roles - Array of roles
- Returns:
- builder implementation
to
public void to(String username)
- This method applies roles specified on
IdentityManagement.grant(String...)
- Specified by:
to in interface org.jboss.aerogear.security.authz.IdentityManagement.GrantMethods<org.picketlink.idm.model.sample.User>
- Parameters:
username - represents a simple user's implementation to hold credentials.
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.