org.jasig.cas.client.authentication
Interface AttributePrincipal

All Superinterfaces:
Principal, Serializable
All Known Implementing Classes:
AttributePrincipalImpl

public interface AttributePrincipal
extends Principal, Serializable

Extension to the standard Java Principal that includes a way to retrieve proxy tickets for a particular user and attributes.

Developer's who don't want their code tied to CAS merely need to work with the Java Principal then. Working with the CAS-specific features requires knowledge of the AttributePrincipal class.

Since:
3.1
Version:
$Revision$ $Date$
Author:
Scott Battaglia

Method Summary
 Map<String,Object> getAttributes()
          The Map of key/value pairs associated with this principal.
 String getProxyTicketFor(String service)
          Retrieves a CAS proxy ticket for this specific principal.
 
Methods inherited from interface java.security.Principal
equals, getName, hashCode, toString
 

Method Detail

getProxyTicketFor

String getProxyTicketFor(String service)
Retrieves a CAS proxy ticket for this specific principal.

Parameters:
service - the service we wish to proxy this user to.
Returns:
a String representing the proxy ticket.

getAttributes

Map<String,Object> getAttributes()
The Map of key/value pairs associated with this principal.

Returns:
the map of key/value pairs associated with this principal.


Copyright © 2006-2011 Jasig. All Rights Reserved.