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 |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| public static final AuthenticationMechanismFactory | |
| public static final String | |
| private final boolean | forceRenegotiation
If we should force a renegotiation if client certs were not supplied. |
| private final IdentityManager | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public | |
| public | ClientCertAuthenticationMechanism(final String mechanismName, boolean forceRenegotiation, IdentityManager identityManager)
|
| Modifier and Type | Method and Description |
|---|---|
| public AuthenticationMechanism. | authenticate(final HttpServerExchange
The exchange exchange, final SecurityContext securityContext)Implements io. Perform authentication of the request. |
| private IdentityManager | |
| private Certificate[] | getPeerCertificates(final HttpServerExchange exchange, SSLSessionInfo sslSession, SecurityContext securityContext)
|
| public AuthenticationMechanism. | sendChallenge(HttpServerExchange
The exchange exchange, SecurityContext The security context securityContext)Implements io. Send an authentication challenge to the remote client. |
| FACTORY | back to summary |
|---|---|
| public static final AuthenticationMechanismFactory FACTORY | |
| FORCE_RENEGOTIATION | back to summary |
|---|---|
| public static final String FORCE_RENEGOTIATION | |
| forceRenegotiation | back to summary |
|---|---|
| private final boolean forceRenegotiation If we should force a renegotiation if client certs were not supplied. | |
| identityManager | back to summary |
|---|---|
| private final IdentityManager identityManager | |
| name | back to summary |
|---|---|
| private final String name | |
| ClientCertAuthenticationMechanism | back to summary |
|---|---|
| public ClientCertAuthenticationMechanism() | |
| ClientCertAuthenticationMechanism | back to summary |
|---|---|
| public ClientCertAuthenticationMechanism(boolean forceRenegotiation) | |
| ClientCertAuthenticationMechanism | back to summary |
|---|---|
| public ClientCertAuthenticationMechanism(final String mechanismName) | |
| ClientCertAuthenticationMechanism | back to summary |
|---|---|
| public ClientCertAuthenticationMechanism(final String mechanismName, boolean forceRenegotiation) | |
| ClientCertAuthenticationMechanism | back to summary |
|---|---|
| public ClientCertAuthenticationMechanism(final String mechanismName, boolean forceRenegotiation, IdentityManager identityManager) | |
| authenticate | back to summary |
|---|---|
| public AuthenticationMechanism. Implements io. Doc from io. Perform authentication of the request. Any potentially blocking work should be performed in the handoff executor provided
| |
| getIdentityManager | back to summary |
|---|---|
private IdentityManager getIdentityManager(SecurityContext securityContext)
| |
| getPeerCertificates | back to summary |
|---|---|
| private Certificate[] getPeerCertificates(final HttpServerExchange exchange, SSLSessionInfo sslSession, SecurityContext securityContext) throws SSLPeerUnverifiedException | |
| sendChallenge | back to summary |
|---|---|
| public AuthenticationMechanism. Implements io. Doc from io. Send an authentication challenge to the remote client.
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
| |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public AuthenticationMechanism | create(String
The name under which this factory was registered mechanismName, IdentityManager the IdentityManager instance asscociated with the deployment identityManager, FormParserFactory Parser to create a form data parser for a given request. formParserFactory, Map<String, String> The properties properties)Overrides default io. Creates an authentication mechanism that needs access to the deployment IdentityManager and specified properties |
| Factory | back to summary |
|---|---|
| public Factory(IdentityManager identityManager)
Deprecated
| |
| Factory | back to summary |
|---|---|
| public Factory() | |
| create | back to summary |
|---|---|
| public AuthenticationMechanism create(String mechanismName, IdentityManager identityManager, FormParserFactory formParserFactory, Map<String, String> properties) Overrides default io. Doc from io. Creates an authentication mechanism that needs access to the deployment IdentityManager and specified properties
| |