public class CasHandler extends Object implements AuthenticationHandler
Modifier and Type | Field and Description |
---|---|
static String |
AUTH_TYPE
CAS type to use when configuring context policy.
|
protected String |
realm |
static String |
SOURCE |
Constructor and Description |
---|
CasHandler() |
Modifier and Type | Method and Description |
---|---|
String |
getAuthenticationType()
Authentication type String used to match this handler with the auth types configured for a
specific context.
|
STSClientConfiguration |
getClientConfiguration() |
HandlerResult |
getNormalizedToken(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain,
boolean resolve)
Determine if all the required information exists in the request to generate a token and move on
to perform authentication and/or authorization for the requested context.
|
ProxyFilter |
getProxyFilter() |
String |
getRealm() |
HandlerResult |
handleError(javax.servlet.ServletRequest servletRequest,
javax.servlet.ServletResponse servletResponse,
javax.servlet.FilterChain chain)
Called when downstream authentication fails.
|
void |
setClientConfiguration(STSClientConfiguration clientConfiguration) |
void |
setProxyFilter(ProxyFilter proxyFilter) |
void |
setRealm(String realm) |
public static final String AUTH_TYPE
public static final String SOURCE
protected String realm
public String getAuthenticationType()
AuthenticationHandler
getAuthenticationType
in interface AuthenticationHandler
public HandlerResult getNormalizedToken(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain, boolean resolve) throws javax.servlet.ServletException
AuthenticationHandler
getNormalizedToken
in interface AuthenticationHandler
request
- http request to obtain attributes from and to pass into any local filter chains
requiredresponse
- http response to return http responses or redirectschain
- original filter chain (should not be called from your handler)resolve
- flag with true implying that credentials should be obtained, false implying
return if no credentials are found.javax.servlet.ServletException
public HandlerResult handleError(javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse, javax.servlet.FilterChain chain) throws javax.servlet.ServletException
AuthenticationHandler
handleError
in interface AuthenticationHandler
servletRequest
- htt http response to return http responses or redirectsjavax.servlet.ServletException
public STSClientConfiguration getClientConfiguration()
public void setClientConfiguration(STSClientConfiguration clientConfiguration)
public ProxyFilter getProxyFilter()
public void setProxyFilter(ProxyFilter proxyFilter)
public String getRealm()
public void setRealm(String realm)
This work is licensed under a Creative Commons Attribution 4.0 International License.