public final class DefaultCompositeAuthentication extends Object implements CompositeAuthentication
CompositeAuthentication implementation that houses an instance of
MutablePrincipal inside, restricts the getAuthenticatedDate() to
the instance at which this authentication is created and exposes a mutable
instance of authentication attributes via getAttributes().| Constructor and Description |
|---|
DefaultCompositeAuthentication(MutablePrincipal p)
Initialize this instance with a principal and an empty
Hashtable. |
DefaultCompositeAuthentication(MutablePrincipal p,
Map<String,Object> attributes)
Initialize this instance with a principal and given authentication attributes.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
getAttributes() |
Date |
getAuthenticatedDate() |
org.jasig.cas.authentication.principal.Principal |
getPrincipal() |
Set<String> |
getSatisfiedAuthenticationMethods()
Retrieves the collection of authentication methods available in the list
of authentication attributes.
|
public DefaultCompositeAuthentication(MutablePrincipal p, Map<String,Object> attributes)
p - the principalattributes - attributes for this authenticationpublic DefaultCompositeAuthentication(MutablePrincipal p)
Hashtable.
for attributes.p - the principalpublic org.jasig.cas.authentication.principal.Principal getPrincipal()
getPrincipal in interface org.jasig.cas.authentication.Authenticationpublic Date getAuthenticatedDate()
getAuthenticatedDate in interface org.jasig.cas.authentication.Authenticationpublic Map<String,Object> getAttributes()
getAttributes in interface org.jasig.cas.authentication.Authenticationpublic Set<String> getSatisfiedAuthenticationMethods()
CompositeAuthenticationgetSatisfiedAuthenticationMethods in interface CompositeAuthenticationCopyright © 2013-2015 Unicon Inc.. All Rights Reserved.