public final class ImmutableAuthentication extends Object implements Authentication, Serializable
| Constructor and Description |
|---|
ImmutableAuthentication(Date date,
List<CredentialMetaData> credentials,
Principal principal,
Map<String,Object> attributes,
Map<String,HandlerResult> successes,
Map<String,Class<? extends Exception>> failures)
Creates a new instance with the given data.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Map<String,Object> |
getAttributes()
Attributes of the authentication (not the Principal).
|
Date |
getAuthenticatedDate()
Method to retrieve the timestamp of when this Authentication object was
created.
|
List<CredentialMetaData> |
getCredentials()
Gets a list of metadata about the credentials supplied at authentication time.
|
Map<String,Class<? extends Exception>> |
getFailures()
Gets a map describing failed authentications.
|
Principal |
getPrincipal()
Method to obtain the Principal.
|
Map<String,HandlerResult> |
getSuccesses()
Gets a map describing successful authentications produced by
AuthenticationHandler components. |
int |
hashCode() |
public ImmutableAuthentication(Date date, List<CredentialMetaData> credentials, Principal principal, Map<String,Object> attributes, Map<String,HandlerResult> successes, Map<String,Class<? extends Exception>> failures)
date - Non-null authentication date.credentials - Non-null list of credential metadata containing at least one entry.principal - Non-null authenticated principal.attributes - Nullable map of authentication metadata.successes - Non-null map of authentication successes containing at least one entry.failures - Nullable map of authentication failures.public Principal getPrincipal()
AuthenticationgetPrincipal in interface Authenticationpublic Date getAuthenticatedDate()
AuthenticationgetAuthenticatedDate in interface Authenticationpublic Map<String,Object> getAttributes()
AuthenticationgetAttributes in interface Authenticationpublic List<CredentialMetaData> getCredentials()
AuthenticationgetCredentials in interface Authenticationpublic Map<String,HandlerResult> getSuccesses()
AuthenticationAuthenticationHandler components.getSuccesses in interface Authenticationpublic Map<String,Class<? extends Exception>> getFailures()
AuthenticationgetFailures in interface AuthenticationCopyright © 2004-2014 Jasig. All Rights Reserved.