aerogear-security-picketbox 1.0.0.M1

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

java.lang.Object
  extended by org.jboss.aerogear.security.picketbox.authz.GrantConfiguration
All Implemented Interfaces:
org.jboss.aerogear.security.authz.IdentityManagement.GrantMethods

@ApplicationScoped
public class GrantConfiguration
extends Object
implements org.jboss.aerogear.security.authz.IdentityManagement.GrantMethods

GrantMethods implementation is a builder to apply roles to AeroGearUser


Field Summary
private  org.picketlink.idm.IdentityManager identityManager
           
private  List<org.picketlink.idm.model.Role> list
           
private static String USERS_GROUP
           
 
Constructor Summary
GrantConfiguration()
           
 
Method Summary
 GrantConfiguration roles(String[] roles)
          This method specifies which roles will be applied to AeroGearUser
 void to(org.jboss.aerogear.security.model.AeroGearUser aeroGearUser)
          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
 

Field Detail

USERS_GROUP

private static final String USERS_GROUP
See Also:
Constant Field Values

identityManager

@Inject
private org.picketlink.idm.IdentityManager identityManager

list

private List<org.picketlink.idm.model.Role> list
Constructor Detail

GrantConfiguration

public GrantConfiguration()
Method Detail

roles

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

Parameters:
roles - Array of roles
Returns:
builder implementation

to

public void to(org.jboss.aerogear.security.model.AeroGearUser aeroGearUser)
This method applies roles specified on IdentityManagement.grant(String...)

Specified by:
to in interface org.jboss.aerogear.security.authz.IdentityManagement.GrantMethods
Parameters:
aeroGearUser - represents a simple user's implementation to hold credentials.

aerogear-security-picketbox 1.0.0.M1

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