public class CasProxyTicketValidator extends AbstractTicketValidator
ProxyTicketValidator
to validate a service ticket.Constructor and Description |
---|
CasProxyTicketValidator() |
Modifier and Type | Method and Description |
---|---|
TicketResponse |
confirmTicketValid(String serviceTicket)
Returns information about the ticket, if it is valid for this service.
|
String |
getProxyCallbackUrl()
Optional callback URL to obtain a proxy-granting ticket from CAS.
|
void |
setProxyCallbackUrl(String proxyCallbackUrl) |
protected TicketResponse |
validateNow(ProxyTicketValidator pv)
Perform the actual remote invocation.
|
afterPropertiesSet, getCasValidate, getServiceProperties, getTrustStore, setCasValidate, setServiceProperties, setTrustStore
public TicketResponse confirmTicketValid(String serviceTicket) throws AuthenticationException
TicketValidator
Must throw an
AuthenticationException
if the ticket is not valid for this service.
serviceTicket
- DOCUMENT ME!AuthenticationException
- DOCUMENT ME!public String getProxyCallbackUrl()
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.
null
if not usedpublic void setProxyCallbackUrl(String proxyCallbackUrl)
protected TicketResponse validateNow(ProxyTicketValidator pv) throws AuthenticationServiceException, BadCredentialsException
pv
- the populated ProxyTicketValidator
TicketResponse
AuthenticationServiceException
- ifProxyTicketValidator
internally failsBadCredentialsException
- DOCUMENT ME!Copyright © 2017. All rights reserved.