public class X509AuthenticationScheme extends Object implements HttpAuthenticationScheme<X509AuthenticationConfiguration>
An implementation of HttpAuthenticationScheme
that supports the Servlet Specification
CLIENT-CERT Authentication Scheme
When using this authentication scheme, the container must be properly configured to validate client certificates.
Modifier and Type | Field and Description |
---|---|
static String |
X509_CLIENT_CERT_REQUEST_ATTRIBUTE |
Constructor and Description |
---|
X509AuthenticationScheme() |
Modifier and Type | Method and Description |
---|---|
void |
challengeClient(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
extractCredential(javax.servlet.http.HttpServletRequest request,
DefaultLoginCredentials creds) |
void |
initialize(X509AuthenticationConfiguration config) |
void |
onPostAuthentication(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
public static final String X509_CLIENT_CERT_REQUEST_ATTRIBUTE
public void initialize(X509AuthenticationConfiguration config)
initialize
in interface HttpAuthenticationScheme<X509AuthenticationConfiguration>
public void extractCredential(javax.servlet.http.HttpServletRequest request, DefaultLoginCredentials creds)
extractCredential
in interface HttpAuthenticationScheme<X509AuthenticationConfiguration>
public void challengeClient(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
challengeClient
in interface HttpAuthenticationScheme<X509AuthenticationConfiguration>
public void onPostAuthentication(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
onPostAuthentication
in interface HttpAuthenticationScheme<X509AuthenticationConfiguration>
Copyright © 2017 JBoss by Red Hat. All rights reserved.