org.kuali.rice.ksb.security.credentials
Class CasProxyTicketCredentialsSource

java.lang.Object
  extended by org.kuali.rice.ksb.security.credentials.CasProxyTicketCredentialsSource
All Implemented Interfaces:
CredentialsSource

public final class CasProxyTicketCredentialsSource
extends java.lang.Object
implements CredentialsSource

Retrieves a proxy ticket for the user based on their provided Proxy Granting Ticket. This assumes that the Proxy GrantingTicket is available from a ThreadLocal and that the service is protected by Acegi.

Note: this class can be used for user-to-service authentication.

This assumes the services are stateless and will not maintain an HttpSession so each call for credentials will result in a new Proxy Ticket being granted.

Since:
0.9
Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
ThreadLocal, ProxyTicketReceptor

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.kuali.rice.core.security.credentials.CredentialsSource
CredentialsSource.CredentialsType
 
Constructor Summary
CasProxyTicketCredentialsSource()
           
 
Method Summary
 Credentials getCredentials(java.lang.String serviceEndpoint)
          Returns the SecurityContext which should have the proper credentials to give to any system requiring credentials.
 CredentialsSource.CredentialsType getSupportedCredentialsType()
          Returns the supported CredentialsType.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CasProxyTicketCredentialsSource

public CasProxyTicketCredentialsSource()
Method Detail

getCredentials

public Credentials getCredentials(java.lang.String serviceEndpoint)
Description copied from interface: CredentialsSource
Returns the SecurityContext which should have the proper credentials to give to any system requiring credentials. This class has no guarantees what a user will do with the credentials and should thus always return a thread-safe version.

Specified by:
getCredentials in interface CredentialsSource
Returns:
the credentials, or null if credentials could not be obtained.

getSupportedCredentialsType

public CredentialsSource.CredentialsType getSupportedCredentialsType()
Description copied from interface: CredentialsSource
Returns the supported CredentialsType. This should never be null.

Specified by:
getSupportedCredentialsType in interface CredentialsSource
Returns:
the supported credentials type.


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.