org.jasig.cas.authentication
Interface Authentication

All Superinterfaces:
Serializable
All Known Implementing Classes:
AbstractAuthentication, ImmutableAuthentication, MutableAuthentication

public interface Authentication
extends Serializable

The Authentication object represents a successful authentication request. It contains the principal that the authentication request was made for as well as the additional meta information such as the authenticated date and a map of attributes.

An Authentication object must be serializable to permit persistance and clustering.

Implementing classes must take care to ensure that the Map returned by getAttributes is serializable by using a Serializable map such as HashMap.

Since:
3.0

This is a published and supported CAS Server 3 API.

Version:
$Revision$ $Date$
Author:
Dmitriy Kopylenko, Scott Battaglia

Method Summary
 Map<String,Object> getAttributes()
          Attributes of the authentication (not the Principal).
 Date getAuthenticatedDate()
          Method to retrieve the timestamp of when this Authentication object was created.
 Principal getPrincipal()
          Method to obtain the Principal.
 

Method Detail

getPrincipal

Principal getPrincipal()
Method to obtain the Principal.

Returns:
a Principal implementation

getAuthenticatedDate

Date getAuthenticatedDate()
Method to retrieve the timestamp of when this Authentication object was created.

Returns:
the date/time the authentication occurred.

getAttributes

Map<String,Object> getAttributes()
Attributes of the authentication (not the Principal).

Returns:
the map of attributes.


Copyright © 2004-2013 Jasig. All Rights Reserved.