public final class ImmutableAuthentication extends AbstractAuthentication
Instanciators of the ImmutableAuthentication class must take care that the map they provide is serializable (i.e. HashMap).
| Constructor and Description |
|---|
ImmutableAuthentication(Principal principal)
Constructor that assumes there are no additional authentication
attributes.
|
ImmutableAuthentication(Principal principal,
Map<String,Object> attributes)
Constructor that accepts both a principal and a map.
|
| Modifier and Type | Method and Description |
|---|---|
Date |
getAuthenticatedDate()
Method to retrieve the timestamp of when this Authentication object was
created.
|
equals, getAttributes, getPrincipal, hashCode, toStringpublic ImmutableAuthentication(Principal principal, Map<String,Object> attributes)
principal - Principal representing userattributes - Authentication attributes map.IllegalArgumentException - if the principal is null.public ImmutableAuthentication(Principal principal)
principal - the Principal representing the authenticated entity.public Date getAuthenticatedDate()
AuthenticationCopyright © 2004-2012 Jasig. All Rights Reserved.