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, NEEDS_CLIENT_REDIRECTION_PARAMETER| Constructor and Description |
|---|
CasProxyReceptor() |
| Modifier and Type | Method and Description |
|---|---|
ClientType |
getClientType() |
int |
getMillisBetweenCleanUps() |
org.jasig.cas.client.proxy.ProxyGrantingTicketStorage |
getProxyGrantingTicketStorage() |
protected void |
internalInit(WebContext context) |
protected boolean |
isDirectRedirection() |
protected IndirectClient<CasCredentials,CasProfile> |
newClient() |
protected CasCredentials |
retrieveCredentials(WebContext context) |
protected RedirectAction |
retrieveRedirectAction(WebContext context) |
protected CasProfile |
retrieveUserProfile(CasCredentials credentials,
WebContext context) |
void |
setMillisBetweenCleanUps(int millisBetweenCleanUps) |
void |
setProxyGrantingTicketStorage(org.jasig.cas.client.proxy.ProxyGrantingTicketStorage proxyGrantingTicketStorage) |
String |
toString() |
computeFinalCallbackUrl, getAjaxRequestResolver, getCallbackUrl, getCallbackUrlResolver, getCredentials, getRedirectAction, getRedirectionUrl, getStateParameter, isIncludeClientNameInCallbackUrl, redirect, setAjaxRequestResolver, setCallbackUrl, setCallbackUrlResolver, setIncludeClientNameInCallbackUrladdAuthorizationGenerator, clone, 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 IndirectClient<CasCredentials,CasProfile> newClient()
newClient in class BaseClient<CasCredentials,CasProfile>protected void internalInit(WebContext context)
internalInit in class InitializableWebObjectprotected CasCredentials retrieveCredentials(WebContext context) throws RequiresHttpAction
retrieveCredentials in class IndirectClient<CasCredentials,CasProfile>RequiresHttpActionpublic 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>protected RedirectAction retrieveRedirectAction(WebContext context)
retrieveRedirectAction in class IndirectClient<CasCredentials,CasProfile>protected CasProfile retrieveUserProfile(CasCredentials credentials, WebContext context)
retrieveUserProfile in class BaseClient<CasCredentials,CasProfile>protected boolean isDirectRedirection()
isDirectRedirection in class IndirectClient<CasCredentials,CasProfile>public ClientType getClientType()
getClientType in class BaseClient<CasCredentials,CasProfile>Copyright © 2016. All Rights Reserved.