org.picketlink.authentication.web
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(javax.servlet.FilterConfig config) |
Modifier and Type | Method and Description |
---|---|
void |
challengeClient(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.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(javax.servlet.http.HttpServletRequest request,
DefaultLoginCredentials creds)
Extracts the credentials from the given
HttpServletRequest and populate the DefaultLoginCredentials with them. |
boolean |
postAuthentication(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Performs any post-authentication logic regarding of the authentication result.
|
public static final String X509_CLIENT_CERT_REQUEST_ATTRIBUTE
public ClientCertAuthenticationScheme(javax.servlet.FilterConfig config)
public void extractCredential(javax.servlet.http.HttpServletRequest request, DefaultLoginCredentials creds)
HTTPAuthenticationScheme
Extracts the credentials from the given HttpServletRequest
and populate the DefaultLoginCredentials
with them.
extractCredential
in interface HTTPAuthenticationScheme
public void challengeClient(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
HTTPAuthenticationScheme
Challenges the client if no credentials were supplied or the credentials were not extracted in order to continue with the authentication.
challengeClient
in interface HTTPAuthenticationScheme
IOException
public boolean postAuthentication(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
HTTPAuthenticationScheme
Performs any post-authentication logic regarding of the authentication result.
postAuthentication
in interface HTTPAuthenticationScheme
IOException
Copyright © 2014 JBoss by Red Hat. All Rights Reserved.