Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.acegisecurity.providers.cas.ticketvalidator
Class CasProxyTicketValidator  view CasProxyTicketValidator download CasProxyTicketValidator.java

java.lang.Object
  extended byorg.acegisecurity.providers.cas.ticketvalidator.AbstractTicketValidator
      extended byorg.acegisecurity.providers.cas.ticketvalidator.CasProxyTicketValidator
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean, org.acegisecurity.providers.cas.TicketValidator

public class CasProxyTicketValidator
extends AbstractTicketValidator

Uses CAS' ProxyTicketValidator to validate a service ticket.

Version:
$Id: CasProxyTicketValidator.java,v 1.2 2005/11/17 00:56:29 benalex Exp $

Field Summary
private static org.apache.commons.logging.Log logger
           
private  java.lang.String proxyCallbackUrl
           
 
Fields inherited from class org.acegisecurity.providers.cas.ticketvalidator.AbstractTicketValidator
 
Constructor Summary
CasProxyTicketValidator()
           
 
Method Summary
 org.acegisecurity.providers.cas.TicketResponse confirmTicketValid(java.lang.String serviceTicket)
          Returns information about the ticket, if it is valid for this service.
 java.lang.String getProxyCallbackUrl()
          Optional callback URL to obtain a proxy-granting ticket from CAS.
 void setProxyCallbackUrl(java.lang.String proxyCallbackUrl)
           
protected  org.acegisecurity.providers.cas.TicketResponse validateNow(ProxyTicketValidator pv)
          Perform the actual remote invocation.
 
Methods inherited from class org.acegisecurity.providers.cas.ticketvalidator.AbstractTicketValidator
afterPropertiesSet, getCasValidate, getServiceProperties, getTrustStore, setCasValidate, setServiceProperties, setTrustStore
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private static final org.apache.commons.logging.Log logger

proxyCallbackUrl

private java.lang.String proxyCallbackUrl
Constructor Detail

CasProxyTicketValidator

public CasProxyTicketValidator()
Method Detail

setProxyCallbackUrl

public void setProxyCallbackUrl(java.lang.String proxyCallbackUrl)

getProxyCallbackUrl

public java.lang.String getProxyCallbackUrl()
Optional callback URL to obtain a proxy-granting ticket from CAS.

This callback URL belongs to the Acegi Security System for Spring secured application. We suggest you use CAS' ProxyTicketReceptor servlet to receive this callback and manage the proxy-granting ticket list. The callback URL is usually something like https://www.mycompany.com/application/casProxy/receptor.

If left null, the CasAuthenticationToken will not have a proxy granting ticket IOU and there will be no proxy-granting ticket callback. Accordingly, the Acegi Securty System for Spring secured application will be unable to obtain a proxy ticket to call another CAS-secured service on behalf of the user. This is not really an issue for most applications.


confirmTicketValid

public org.acegisecurity.providers.cas.TicketResponse confirmTicketValid(java.lang.String serviceTicket)
                                                                  throws org.acegisecurity.AuthenticationException
Description copied from interface: org.acegisecurity.providers.cas.TicketValidator
Returns information about the ticket, if it is valid for this service.

Must throw an AuthenticationException if the ticket is not valid for this service.


validateNow

protected org.acegisecurity.providers.cas.TicketResponse validateNow(ProxyTicketValidator pv)
                                                              throws org.acegisecurity.AuthenticationServiceException,
                                                                     org.acegisecurity.BadCredentialsException
Perform the actual remote invocation. Protected to enable replacement during tests.