public abstract class AbstractGenericHeaderAuthenticator
extends FormAuthenticator
Modifier and Type | Field and Description |
---|---|
protected static PicketLinkLogger |
log |
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(Request request)
Obtain the session cookie from the request
|
String |
getSessionCookieForSSOAuth()
Obtain the value of the
sessionCookieForSSOAuth attribute. |
protected String |
getUserId(Request request)
Get the username from the request header
|
boolean |
performAuthentication(Request request,
Response response,
LoginConfig config) |
void |
setHttpHeaderForSSOAuth(String httpHeaderForSSOAuth)
Set the value of the
httpHeaderForSSOAuth attribute. |
void |
setSessionCookieForSSOAuth(String sessionCookieForSSOAuth)
Set the value of the
sessionCookieForSSOAuth attribute. |
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(Request request, Response response, LoginConfig config) throws IOException
IOException
protected String getUserId(Request request)
request
- protected String getSessionCookie(Request request)
request
- Copyright © 2019 JBoss by Red Hat. All rights reserved.