aerogear-security-picketlink 1.2.0

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.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


Constructor Summary
GrantConfiguration()
           
 
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
 

Constructor Detail

GrantConfiguration

public GrantConfiguration()
Method Detail

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.

aerogear-security-picketlink 1.2.0

Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.