org.jasig.cas.authentication
Class AbstractAuthentication

java.lang.Object
  extended by org.jasig.cas.authentication.AbstractAuthentication
All Implemented Interfaces:
Serializable, Authentication
Direct Known Subclasses:
ImmutableAuthentication, MutableAuthentication

public abstract class AbstractAuthentication
extends Object
implements Authentication

Since:
3.0.3
Version:
$Revision$ $Date: 2007-02-20 09:41:49 -0500 (Tue, 20 Feb 2007) $
Author:
Scott Battaglia
See Also:
Serialized Form

Constructor Summary
AbstractAuthentication(Principal principal, Map<String,Object> attributes)
           
 
Method Summary
 boolean equals(Object o)
           
 Map<String,Object> getAttributes()
          Attributes of the authentication (not the Principal).
 Principal getPrincipal()
          Method to obtain the Principal.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jasig.cas.authentication.Authentication
getAuthenticatedDate
 

Constructor Detail

AbstractAuthentication

public AbstractAuthentication(Principal principal,
                              Map<String,Object> attributes)
Method Detail

getAttributes

public final Map<String,Object> getAttributes()
Description copied from interface: Authentication
Attributes of the authentication (not the Principal).

Specified by:
getAttributes in interface Authentication
Returns:
the map of attributes.

getPrincipal

public final Principal getPrincipal()
Description copied from interface: Authentication
Method to obtain the Principal.

Specified by:
getPrincipal in interface Authentication
Returns:
a Principal implementation

equals

public final boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public final int hashCode()
Overrides:
hashCode in class Object

toString

public final String toString()
Overrides:
toString in class Object


Copyright © 2004-2013 Jasig. All Rights Reserved.