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()
Return the client type.
|
int |
getMillisBetweenCleanUps() |
org.jasig.cas.client.proxy.ProxyGrantingTicketStorage |
getProxyGrantingTicketStorage() |
protected void |
internalInit(WebContext context)
Internal initialization of the object.
|
protected boolean |
isDirectRedirection()
Define if this client has a direct redirection.
|
protected IndirectClient<CasCredentials,CasProfile> |
newClient()
Create a new instance of the client.
|
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, setIncludeClientNameInCallbackUrl
addAuthorizationGenerator, clone, getAuthorizationGenerators, getName, getUserProfile, setAuthorizationGenerator, setAuthorizationGenerators, setAuthorizationGenerators, setName
init, reinit
public static final String PARAM_PROXY_GRANTING_TICKET_IOU
public static final String PARAM_PROXY_GRANTING_TICKET
protected IndirectClient<CasCredentials,CasProfile> newClient()
BaseClient
newClient
in class BaseClient<CasCredentials,CasProfile>
protected void internalInit(WebContext context)
InitializableWebObject
internalInit
in class InitializableWebObject
context
- the web contextprotected CasCredentials retrieveCredentials(WebContext context) throws RequiresHttpAction
retrieveCredentials
in class IndirectClient<CasCredentials,CasProfile>
RequiresHttpAction
public 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()
IndirectClient
isDirectRedirection
in class IndirectClient<CasCredentials,CasProfile>
public ClientType getClientType()
BaseClient
getClientType
in class BaseClient<CasCredentials,CasProfile>
Copyright © 2016. All rights reserved.