java.lang.Object
org.acegisecurity.providers.cas.ticketvalidator.AbstractTicketValidator
org.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 $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
private static final org.apache.commons.logging.Log logger
proxyCallbackUrl
private java.lang.String proxyCallbackUrl
CasProxyTicketValidator
public CasProxyTicketValidator()
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.