public abstract class AbstractGenericHeaderAuthenticator
extends org.apache.catalina.authenticator.FormAuthenticator
Modifier and Type | Field and Description |
---|---|
protected static PicketLinkLogger |
log |
characterEncoding, info, landingPage
alwaysUseSession, AUTH_HEADER_NAME, cache, changeSessionIdOnAuthentication, context, disableProxyCaching, lifecycle, REALM_NAME, securePagesWithPragma, SESSION_ID_BYTES, sso, started, unregisterSsoOnLogout
container, controller, domain, mserver, next, oname
AFTER_LOAD_ON_STARTUP_EVENT, AFTER_START_EVENT, AFTER_STOP_EVENT, AFTER_UNLOAD_EVENT, BEFORE_LOAD_ON_STARTUP_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, BEFORE_UNLOAD_EVENT, DESTROY_EVENT, INIT_EVENT, LOAD_ON_STARTUP_EVENT, PERIODIC_EVENT, START_EVENT, STOP_EVENT
Constructor and Description |
---|
AbstractGenericHeaderAuthenticator()
Creates an instance of
AbstractGenericHeaderAuthenticator . |
Modifier and Type | Method and Description |
---|---|
protected String |
getCookieValue(Cookie[] cookies,
int numCookies,
String token)
Get the value of a cookie if the name matches the token
|
String |
getHttpHeaderForSSOAuth()
Obtain the value of the
httpHeaderForSSOAuth attribute. |
protected String |
getSessionCookie(org.apache.catalina.connector.Request request)
Obtain the session cookie from the request
|
String |
getSessionCookieForSSOAuth()
Obtain the value of the
sessionCookieForSSOAuth attribute. |
protected String |
getUserId(org.apache.catalina.connector.Request request)
Get the username from the request header
|
boolean |
performAuthentication(org.apache.catalina.connector.Request request,
org.apache.catalina.connector.Response response,
org.apache.catalina.deploy.LoginConfig config) |
void |
setHttpHeaderForSSOAuth(String httpHeaderForSSOAuth)
Set the value of the
httpHeaderForSSOAuth attribute. |
void |
setSessionCookieForSSOAuth(String sessionCookieForSSOAuth)
Set the value of the
sessionCookieForSSOAuth attribute. |
authenticate, forwardToErrorPage, forwardToLoginPage, getCharacterEncoding, getInfo, getLandingPage, matchRequest, restoreRequest, savedRequestURL, saveRequest, setCharacterEncoding, setLandingPage
addLifecycleListener, associate, authenticate, findLifecycleListeners, generateSessionId, getCache, getContainer, getDisableProxyCaching, getSecurePagesWithPragma, invoke, isChangeSessionIdOnAuthentication, isUnregisterSsoOnLogout, login, logout, reauthenticateFromSSO, register, removeLifecycleListener, setCache, setChangeSessionIdOnAuthentication, setContainer, setDisableProxyCaching, setSecurePagesWithPragma, setUnregisterSsoOnLogout, start, stop, unregister
protected static final PicketLinkLogger log
public AbstractGenericHeaderAuthenticator()
Creates an instance of AbstractGenericHeaderAuthenticator
.
public String getHttpHeaderForSSOAuth()
Obtain the value of the httpHeaderForSSOAuth
attribute. This attribute is used to indicate the request
header ids that have to be checked in order to retrieve the SSO identity set by a third party security system.
String
containing the value of the httpHeaderForSSOAuth
attribute.public void setHttpHeaderForSSOAuth(String httpHeaderForSSOAuth)
Set the value of the httpHeaderForSSOAuth
attribute. This attribute is used to indicate the request header
ids that have to be checked in order to retrieve the SSO identity set by a third party security system.
httpHeaderForSSOAuth
- a String
containing the value of the httpHeaderForSSOAuth
attribute.public String getSessionCookieForSSOAuth()
Obtain the value of the sessionCookieForSSOAuth
attribute. This attribute is used to indicate the names of
the SSO cookies that may be present in the request object.
String
containing the names (separated by a ','
) of the SSO cookies that may have
been set by a third party security system in the request.public void setSessionCookieForSSOAuth(String sessionCookieForSSOAuth)
Set the value of the sessionCookieForSSOAuth
attribute. This attribute is used to indicate the names of the
SSO cookies that may be present in the request object.
sessionCookieForSSOAuth
- a String
containing the names (separated by a ','
) of the SSO
cookies that may have been set by a third party security system in the request.public boolean performAuthentication(org.apache.catalina.connector.Request request, org.apache.catalina.connector.Response response, org.apache.catalina.deploy.LoginConfig config) throws IOException
IOException
protected String getUserId(org.apache.catalina.connector.Request request)
request
- protected String getSessionCookie(org.apache.catalina.connector.Request request)
request
- Copyright © 2018 JBoss by Red Hat. All rights reserved.