org.jasig.cas.client.proxy
Class Cas20ProxyRetriever

java.lang.Object
  extended by org.jasig.cas.client.proxy.Cas20ProxyRetriever
All Implemented Interfaces:
Serializable, ProxyRetriever

public final class Cas20ProxyRetriever
extends Object
implements ProxyRetriever

Implementation of a ProxyRetriever that follows the CAS 2.0 specification. For more information on the CAS 2.0 specification, please see the specification document.

In general, this class will make a call to the CAS server with some specified parameters and receive an XML response to parse.

Since:
3.0
Author:
Scott Battaglia
See Also:
Serialized Form

Constructor Summary
Cas20ProxyRetriever(String casServerUrl, String encoding, HttpURLConnectionFactory urlFactory)
          Main Constructor.
 
Method Summary
 String getProxyTicketIdFor(String proxyGrantingTicketId, String targetService)
          Retrieves a proxy ticket for a specific targetService.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Cas20ProxyRetriever

public Cas20ProxyRetriever(String casServerUrl,
                           String encoding,
                           HttpURLConnectionFactory urlFactory)
Main Constructor.

Parameters:
casServerUrl - the URL to the CAS server (i.e. http://localhost/cas/)
encoding - the encoding to use.
urlFactory - url connection factory use when retrieving proxy responses from the server
Method Detail

getProxyTicketIdFor

public String getProxyTicketIdFor(String proxyGrantingTicketId,
                                  String targetService)
Description copied from interface: ProxyRetriever
Retrieves a proxy ticket for a specific targetService.

Specified by:
getProxyTicketIdFor in interface ProxyRetriever
Parameters:
proxyGrantingTicketId - the ProxyGrantingTicketId
targetService - the service we want to proxy.
Returns:
the ProxyTicket Id if Granted, null otherwise.


Copyright © 2006-2014 Jasig. All Rights Reserved.