public final class CasProxyReceptor extends IndirectClient<CasCredentials,CasProfile>
This class is the CAS proxy receptor.
The url of the proxy receptor must be defined through the IndirectClient.setCallbackUrl(String) method, it's the proxyReceptorUrl
concept of the Jasig CAS client.
The proxy granting tickets and associations are stored by default in a ProxyGrantingTicketStorageImpl class, which can be
overriden by using the setProxyGrantingTicketStorage(ProxyGrantingTicketStorage) method.
By default, the tickets and associations are cleaned every minute. The millisBetweenCleanUps property can be defined through
the setMillisBetweenCleanUps(int) method (0 means no cleanup, greater than 0 means a cleanup every
millisBetweenCleanUps milli-seconds).
| Modifier and Type | Field and Description |
|---|---|
static String |
PARAM_PROXY_GRANTING_TICKET |
static String |
PARAM_PROXY_GRANTING_TICKET_IOU |
ATTEMPTED_AUTHENTICATION_SUFFIX, callbackUrl, callbackUrlResolver| Constructor and Description |
|---|
CasProxyReceptor() |
| Modifier and Type | Method and Description |
|---|---|
int |
getMillisBetweenCleanUps() |
org.jasig.cas.client.proxy.ProxyGrantingTicketStorage |
getProxyGrantingTicketStorage() |
protected void |
internalInit(WebContext context)
Internal initialization of the object.
|
protected CasCredentials |
retrieveCredentials(WebContext context)
Retrieve the credentials.
|
protected RedirectAction |
retrieveRedirectAction(WebContext context)
Retrieve the redirect action.
|
protected CasProfile |
retrieveUserProfile(CasCredentials credentials,
WebContext context)
Retrieve a user userprofile.
|
void |
setMillisBetweenCleanUps(int millisBetweenCleanUps) |
void |
setProxyGrantingTicketStorage(org.jasig.cas.client.proxy.ProxyGrantingTicketStorage proxyGrantingTicketStorage) |
String |
toString() |
computeFinalCallbackUrl, getAjaxRequestResolver, getCallbackUrl, getCallbackUrlResolver, getCredentials, getRedirectAction, getStateParameter, isIncludeClientNameInCallbackUrl, redirect, setAjaxRequestResolver, setCallbackUrl, setCallbackUrlResolver, setIncludeClientNameInCallbackUrladdAuthorizationGenerator, getAuthorizationGenerators, getName, getUserProfile, setAuthorizationGenerator, setAuthorizationGenerators, setAuthorizationGenerators, setNameinit, reinitpublic static final String PARAM_PROXY_GRANTING_TICKET_IOU
public static final String PARAM_PROXY_GRANTING_TICKET
protected void internalInit(WebContext context)
InitializableWebObjectinternalInit in class IndirectClient<CasCredentials,CasProfile>context - the web contextprotected RedirectAction retrieveRedirectAction(WebContext context) throws HttpAction
IndirectClientretrieveRedirectAction in class IndirectClient<CasCredentials,CasProfile>context - the web contextHttpAction - requires a specific HTTP action if necessaryprotected CasCredentials retrieveCredentials(WebContext context) throws HttpAction
IndirectClientretrieveCredentials in class IndirectClient<CasCredentials,CasProfile>context - the web contextHttpAction - whether an additional HTTP action is requiredprotected CasProfile retrieveUserProfile(CasCredentials credentials, WebContext context) throws HttpAction
BaseClientretrieveUserProfile in class BaseClient<CasCredentials,CasProfile>credentials - the credentialscontext - the web contextHttpAction - whether an additional HTTP action is requiredpublic org.jasig.cas.client.proxy.ProxyGrantingTicketStorage getProxyGrantingTicketStorage()
public void setProxyGrantingTicketStorage(org.jasig.cas.client.proxy.ProxyGrantingTicketStorage proxyGrantingTicketStorage)
public int getMillisBetweenCleanUps()
public void setMillisBetweenCleanUps(int millisBetweenCleanUps)
public String toString()
toString in class BaseClient<CasCredentials,CasProfile>Copyright © 2016. All rights reserved.