org.jboss.picketlink.cdi.internal
Class DefaultIdentity

java.lang.Object
  extended by org.jboss.picketlink.cdi.internal.DefaultIdentity
All Implemented Interfaces:
Serializable, Identity

@SessionScoped
@Named(value="identity")
public class DefaultIdentity
extends Object
implements Identity

Default Identity implementation

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jboss.picketlink.cdi.Identity
Identity.AuthenticationResult
 
Constructor Summary
DefaultIdentity()
           
 
Method Summary
protected  boolean authenticate()
           
 org.jboss.picketlink.idm.model.User getUser()
           
 boolean hasPermission(Class<?> resourceClass, Serializable identifier, String operation)
           
 boolean hasPermission(Object resource, String operation)
           
 boolean isLoggedIn()
           
 Identity.AuthenticationResult login()
           
 void logout()
           
protected  void logout(boolean invalidateLoginCredential)
           
protected  void postAuthenticate(Authenticator activeAuthenticator)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultIdentity

public DefaultIdentity()
Method Detail

isLoggedIn

public boolean isLoggedIn()
Specified by:
isLoggedIn in interface Identity

getUser

public org.jboss.picketlink.idm.model.User getUser()
Specified by:
getUser in interface Identity

login

public Identity.AuthenticationResult login()
Specified by:
login in interface Identity

authenticate

protected boolean authenticate()
                        throws AuthenticationException
Throws:
AuthenticationException

postAuthenticate

protected void postAuthenticate(Authenticator activeAuthenticator)

logout

public void logout()
Specified by:
logout in interface Identity

logout

protected void logout(boolean invalidateLoginCredential)

hasPermission

public boolean hasPermission(Object resource,
                             String operation)
Specified by:
hasPermission in interface Identity

hasPermission

public boolean hasPermission(Class<?> resourceClass,
                             Serializable identifier,
                             String operation)
Specified by:
hasPermission in interface Identity


Copyright © 2012. All Rights Reserved.