aerogear-security-picketlink 1.2.2

org.jboss.aerogear.security.picketlink.authz
Class GrantConfiguration

java.lang.Object
  extended by org.jboss.aerogear.security.picketlink.authz.GrantConfiguration
All Implemented Interfaces:
org.jboss.aerogear.security.authz.IdentityManagement.GrantMethods<org.picketlink.idm.model.basic.User>

@ApplicationScoped
public class GrantConfiguration
extends Object
implements org.jboss.aerogear.security.authz.IdentityManagement.GrantMethods<org.picketlink.idm.model.basic.User>

GrantMethods implementation is a builder to apply roles to User


Constructor Summary
GrantConfiguration()
           
 
Method Summary
 GrantConfiguration revoke(String... roles)
          This method allows to revoke which roles must be revoked to User
 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...)
 void to(org.picketlink.idm.model.basic.User user)
          This method revokes roles specified on IdentityManagement.revoke(String...)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GrantConfiguration

public GrantConfiguration()
Method Detail

roles

public GrantConfiguration roles(String[] roles)
This method specifies which roles will be applied to User

Specified by:
roles in interface org.jboss.aerogear.security.authz.IdentityManagement.GrantMethods<org.picketlink.idm.model.basic.User>
Parameters:
roles - Array of roles
Returns:
builder implementation

revoke

public GrantConfiguration revoke(String... roles)
This method allows to revoke which roles must be revoked to User

Specified by:
revoke in interface org.jboss.aerogear.security.authz.IdentityManagement.GrantMethods<org.picketlink.idm.model.basic.User>
Parameters:
roles - List of roles to be revoked

to

public void to(org.picketlink.idm.model.basic.User user)
This method revokes roles specified on IdentityManagement.revoke(String...)

Specified by:
to in interface org.jboss.aerogear.security.authz.IdentityManagement.GrantMethods<org.picketlink.idm.model.basic.User>
Parameters:
user - represents a simple user's implementation to hold credentials.

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.basic.User>
Parameters:
username - represents a simple user's implementation to hold credentials.

aerogear-security-picketlink 1.2.2

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.