public class ClientCertAuthenticationMechanism extends Object implements AuthenticationMechanism
When authenticate is called the current request is checked to see if it a SSL request, this is further checked to identify if the client has been verified at the SSL level.
Modifier and Type | Class and Description |
---|---|
static class | ClientCertAuthenticationMechanism.Factory |
AuthenticationMechanism.AuthenticationMechanismOutcome, AuthenticationMechanism.ChallengeResult
Modifier and Type | Field and Description |
---|---|
static String | FORCE_RENEGOTIATION |
Constructor and Description |
---|
ClientCertAuthenticationMechanism() |
ClientCertAuthenticationMechanism(boolean forceRenegotiation) |
ClientCertAuthenticationMechanism(String mechanismName) |
ClientCertAuthenticationMechanism(String mechanismName, boolean forceRenegotiation) |
ClientCertAuthenticationMechanism(String mechanismName, boolean forceRenegotiation, IdentityManager identityManager) |
Modifier and Type | Method and Description |
---|---|
AuthenticationMechanism.AuthenticationMechanismOutcome | authenticate(HttpServerExchange exchange, SecurityContext securityContext) Perform authentication of the request. |
AuthenticationMechanism.ChallengeResult | sendChallenge(HttpServerExchange exchange, SecurityContext securityContext) Send an authentication challenge to the remote client. |
public static final String FORCE_RENEGOTIATION
public ClientCertAuthenticationMechanism()
public ClientCertAuthenticationMechanism(boolean forceRenegotiation)
public ClientCertAuthenticationMechanism(String mechanismName)
public ClientCertAuthenticationMechanism(String mechanismName, boolean forceRenegotiation)
public ClientCertAuthenticationMechanism(String mechanismName, boolean forceRenegotiation, IdentityManager identityManager)
public AuthenticationMechanism.AuthenticationMechanismOutcome authenticate(HttpServerExchange exchange, SecurityContext securityContext)
AuthenticationMechanism
authenticate
in interface AuthenticationMechanism
exchange
- The exchangepublic AuthenticationMechanism.ChallengeResult sendChallenge(HttpServerExchange exchange, SecurityContext securityContext)
AuthenticationMechanism
The individual mechanisms should update the response headers and body of the message as appropriate however they should not set the response code, instead that should be indicated in the AuthenticationMechanism.ChallengeResult
and the most appropriate overall response code will be selected. This method should not return null
.
sendChallenge
in interface AuthenticationMechanism
exchange
- The exchangesecurityContext
- The security contextAuthenticationMechanism.ChallengeResult
indicating if a challenge was sent and the desired response code.Copyright © 2017 JBoss by Red Hat. All rights reserved.