public final class CasProxyReceptor extends BaseClient<CasCredentials,CasProfile>
This class is the CAS proxy receptor.
The url of the proxy receptor must be defined through the BaseClient.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, NEEDS_CLIENT_REDIRECTION_PARAMETER| Constructor and Description |
|---|
CasProxyReceptor() |
| Modifier and Type | Method and Description |
|---|---|
Mechanism |
getMechanism() |
int |
getMillisBetweenCleanUps() |
org.jasig.cas.client.proxy.ProxyGrantingTicketStorage |
getProxyGrantingTicketStorage() |
protected void |
internalInit() |
protected boolean |
isDirectRedirection() |
protected BaseClient<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() |
addAuthorizationGenerator, clone, getAuthenticator, getAuthorizationGenerators, getCallbackUrl, getContextualCallbackUrl, getCredentials, getName, getProfileCreator, getRedirectAction, getRedirectionUrl, getStateParameter, getUserProfile, isEnableContextualRedirects, prependHostToUrlIfNotPresent, redirect, setAuthenticator, setAuthorizationGenerator, setAuthorizationGenerators, setCallbackUrl, setEnableContextualRedirects, setName, setProfileCreatorinit, reinitpublic static final String PARAM_PROXY_GRANTING_TICKET_IOU
public static final String PARAM_PROXY_GRANTING_TICKET
protected BaseClient<CasCredentials,CasProfile> newClient()
newClient in class BaseClient<CasCredentials,CasProfile>protected void internalInit()
internalInit in class InitializableObjectprotected CasCredentials retrieveCredentials(WebContext context) throws RequiresHttpAction
retrieveCredentials in class BaseClient<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 BaseClient<CasCredentials,CasProfile>protected CasProfile retrieveUserProfile(CasCredentials credentials, WebContext context)
retrieveUserProfile in class BaseClient<CasCredentials,CasProfile>protected boolean isDirectRedirection()
isDirectRedirection in class BaseClient<CasCredentials,CasProfile>public Mechanism getMechanism()
getMechanism in class BaseClient<CasCredentials,CasProfile>Copyright © 2015. All Rights Reserved.