org.jasig.cas.authentication
Class AbstractAuthentication

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

public abstract class AbstractAuthentication
extends java.lang.Object
implements Authentication

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

Constructor Summary
AbstractAuthentication(Principal principal, java.util.Map<java.lang.String,java.lang.Object> attributes)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.util.Map<java.lang.String,java.lang.Object> getAttributes()
          Attributes of the authentication (not the Principal).
 Principal getPrincipal()
          Method to obtain the Principal.
 int hashCode()
           
 java.lang.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,
                              java.util.Map<java.lang.String,java.lang.Object> attributes)
Method Detail

getAttributes

public final java.util.Map<java.lang.String,java.lang.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(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public final int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public final java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2004-2010 Java Architectures Special Interest Group. All Rights Reserved.