org.jasig.cas.client.authentication
Interface AttributePrincipal

All Superinterfaces:
java.security.Principal, java.io.Serializable
All Known Implementing Classes:
AttributePrincipalImpl

public interface AttributePrincipal
extends java.security.Principal, java.io.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
 java.util.Map getAttributes()
          The Map of key/value pairs associated with this principal.
 java.lang.String getProxyTicketFor(java.lang.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

java.lang.String getProxyTicketFor(java.lang.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

java.util.Map getAttributes()
The Map of key/value pairs associated with this principal.

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


Copyright © 2006-2009 JA-SIG. All Rights Reserved.