org.apache.deltaspike.security.impl.authentication
Class DefaultIdentity
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultIdentity
public DefaultIdentity()
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.