public class ClientCertAuthenticationScheme extends Object implements HTTPAuthenticationScheme
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 |
|---|
ClientCertAuthenticationScheme(FilterConfig config) |
| Modifier and Type | Method and Description |
|---|---|
void |
challengeClient(HttpServletRequest request,
HttpServletResponse response)
Challenges the client if no credentials were supplied or the credentials were not extracted in order to continue with the authentication.
|
void |
extractCredential(HttpServletRequest request,
DefaultLoginCredentials creds)
Extracts the credentials from the given
HttpServletRequest and populate the DefaultLoginCredentials with them. |
boolean |
postAuthentication(HttpServletRequest request,
HttpServletResponse response)
Performs any post-authentication logic regarding of the authentication result.
|
public static final String X509_CLIENT_CERT_REQUEST_ATTRIBUTE
public ClientCertAuthenticationScheme(FilterConfig config)
public void extractCredential(HttpServletRequest request, DefaultLoginCredentials creds)
HTTPAuthenticationSchemeExtracts the credentials from the given HttpServletRequest and populate the DefaultLoginCredentials with them.
extractCredential in interface HTTPAuthenticationSchemepublic void challengeClient(HttpServletRequest request, HttpServletResponse response) throws IOException
HTTPAuthenticationSchemeChallenges the client if no credentials were supplied or the credentials were not extracted in order to continue with the authentication.
challengeClient in interface HTTPAuthenticationSchemeIOExceptionpublic boolean postAuthentication(HttpServletRequest request, HttpServletResponse response) throws IOException
HTTPAuthenticationSchemePerforms any post-authentication logic regarding of the authentication result.
postAuthentication in interface HTTPAuthenticationSchemeIOExceptionCopyright © 2018 JBoss by Red Hat. All rights reserved.