aerogear-security-picketbox 1.0.0.M1

org.jboss.aerogear.security.picketbox.idm
Class AeroGearCredentialImpl

java.lang.Object
  extended by org.jboss.aerogear.security.picketbox.idm.AeroGearCredentialImpl
All Implemented Interfaces:
Serializable, org.jboss.aerogear.security.idm.AeroGearCredential

public class AeroGearCredentialImpl
extends Object
implements org.jboss.aerogear.security.idm.AeroGearCredential

Represents the current logged in Credential

See Also:
Serialized Form

Field Summary
private  org.picketbox.cdi.PicketBoxIdentity identity
           
 
Constructor Summary
AeroGearCredentialImpl()
           
 
Method Summary
 String getId()
          Represents the current AeroGearUser logged in.
 boolean hasRoles(Set<String> roles)
          Role validation against the IDM
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

identity

@Inject
private org.picketbox.cdi.PicketBoxIdentity identity
Constructor Detail

AeroGearCredentialImpl

public AeroGearCredentialImpl()
Method Detail

getId

@Produces
@LoggedUser
public String getId()
Represents the current AeroGearUser logged in.

Specified by:
getId in interface org.jboss.aerogear.security.idm.AeroGearCredential

hasRoles

public boolean hasRoles(Set<String> roles)
Role validation against the IDM

Specified by:
hasRoles in interface org.jboss.aerogear.security.idm.AeroGearCredential
Parameters:
roles - roles to be checked
Returns:
returns true if the current logged in has roles at the IDM, false otherwise

aerogear-security-picketbox 1.0.0.M1

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