Warning
This method performs no verification. It must only be used if there is no way for an end user to modify the principal, for example if Undertow is behind a front end server that is responsible for authentication.
| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| public static final AttachmentKey | |
| public static final AttachmentKey | |
| public static final AuthenticationMechanismFactory | |
| private final IdentityManager | |
| public static final String | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public AuthenticationMechanism. | authenticate(HttpServerExchange
The exchange exchange, SecurityContext securityContext)Implements io. Perform authentication of the request. |
| private IdentityManager | |
| public AuthenticationMechanism. | sendChallenge(HttpServerExchange
The exchange exchange, SecurityContext The security context securityContext)Implements io. Send an authentication challenge to the remote client. |
| EXTERNAL_AUTHENTICATION_TYPE | back to summary |
|---|---|
| public static final AttachmentKey<String> EXTERNAL_AUTHENTICATION_TYPE | |
| EXTERNAL_PRINCIPAL | back to summary |
|---|---|
| public static final AttachmentKey<String> EXTERNAL_PRINCIPAL | |
| FACTORY | back to summary |
|---|---|
| public static final AuthenticationMechanismFactory FACTORY | |
| identityManager | back to summary |
|---|---|
| private final IdentityManager identityManager | |
| NAME | back to summary |
|---|---|
| public static final String NAME | |
| name | back to summary |
|---|---|
| private final String name | |
| ExternalAuthenticationMechanism | back to summary |
|---|---|
| public ExternalAuthenticationMechanism(String name, IdentityManager identityManager) | |
| ExternalAuthenticationMechanism | back to summary |
|---|---|
| public ExternalAuthenticationMechanism(String name) | |
| ExternalAuthenticationMechanism | back to summary |
|---|---|
| public ExternalAuthenticationMechanism() | |
| 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)
| |
| 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
| |