org.jboss.aerogear.security.picketbox.idm
Class AeroGearCredentialImpl
java.lang.Object
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
|
|
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 |
identity
@Inject
private org.picketbox.cdi.PicketBoxIdentity identity
AeroGearCredentialImpl
public AeroGearCredentialImpl()
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
Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.