|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.cas.authentication.AbstractAuthentication
org.jasig.cas.authentication.ImmutableAuthentication
public final class ImmutableAuthentication
Default implementation of Authentication interface. ImmutableAuthentication is an immutable object and thus its attributes cannot be changed.
Instanciators of the ImmutableAuthentication class must take care that the map they provide is serializable (i.e. HashMap).
| Constructor Summary | |
|---|---|
ImmutableAuthentication(Principal principal)
Constructor that assumes there are no additional authentication attributes. |
|
ImmutableAuthentication(Principal principal,
java.util.Map<java.lang.String,java.lang.Object> attributes)
Constructor that accepts both a principal and a map. |
|
| Method Summary | |
|---|---|
java.util.Date |
getAuthenticatedDate()
Method to retrieve the timestamp of when this Authentication object was created. |
| Methods inherited from class org.jasig.cas.authentication.AbstractAuthentication |
|---|
equals, getAttributes, getPrincipal, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ImmutableAuthentication(Principal principal,
java.util.Map<java.lang.String,java.lang.Object> attributes)
principal - Principal representing userattributes - Authentication attributes map.
java.lang.IllegalArgumentException - if the principal is null.public ImmutableAuthentication(Principal principal)
principal - the Principal representing the authenticated entity.| Method Detail |
|---|
public java.util.Date getAuthenticatedDate()
Authentication
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||