org.picketlink.internal
@SessionScoped @Named(value="identity") public class DefaultIdentity extends Object implements Identity
Identity.AuthenticationResult, Identity.Stateless
Constructor and Description |
---|
DefaultIdentity() |
Modifier and Type | Method and Description |
---|---|
protected org.picketlink.idm.model.Account |
authenticate() |
org.picketlink.idm.model.Account |
getAccount() |
protected void |
handleSuccessfulLoginAttempt(org.picketlink.idm.model.Account validatedAccount) |
protected void |
handleUnsuccesfulLoginAttempt(Throwable e) |
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 authenticator) |
public boolean isLoggedIn()
isLoggedIn
in interface Identity
public org.picketlink.idm.model.Account getAccount()
getAccount
in interface Identity
public Identity.AuthenticationResult login()
protected void handleSuccessfulLoginAttempt(org.picketlink.idm.model.Account validatedAccount)
protected void handleUnsuccesfulLoginAttempt(Throwable e)
protected org.picketlink.idm.model.Account authenticate() throws AuthenticationException
AuthenticationException
protected void postAuthenticate(Authenticator authenticator)
protected void logout(boolean invalidateLoginCredential)
public boolean hasPermission(Object resource, String operation)
hasPermission
in interface Identity
public boolean hasPermission(Class<?> resourceClass, Serializable identifier, String operation)
hasPermission
in interface Identity
Copyright © 2014 JBoss by Red Hat. All Rights Reserved.