org.apache.deltaspike.security.impl.authentication
Class DefaultIdentity

java.lang.Object
  extended by org.apache.deltaspike.security.impl.authentication.DefaultIdentity
All Implemented Interfaces:
Serializable, Identity

@SessionScoped
public class DefaultIdentity
extends Object
implements Identity

Default Identity implementation

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.deltaspike.security.api.Identity
Identity.AuthenticationResult
 
Constructor Summary
DefaultIdentity()
           
 
Method Summary
protected  boolean authenticate()
           
 User getUser()
           
 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 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)


Copyright © 2011-2012 The Apache Software Foundation. All Rights Reserved.