org.jboss.picketlink.cdi.internal
Class DefaultIdentity
java.lang.Object
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
| 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 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.