| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private final String | |
| public static final String | |
| private final Charset | |
| private static final String | |
| public static final AuthenticationMechanismFactory | |
| private final IdentityManager | |
| private static final String | |
| private final String | |
| private static final int | |
| public static final String | |
| private final boolean | silent
If silent is true then this mechanism will only take effect if there is an Authorization header. |
| public static final String | USER_AGENT_CHARSETS
A comma separated list of patterns and charsets. |
| private final Map |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | BasicAuthenticationMechanism(final String realmName, final String mechanismName, final boolean silent)
|
| public | BasicAuthenticationMechanism(final String realmName, final String mechanismName, final boolean silent, final IdentityManager identityManager)
|
| public | BasicAuthenticationMechanism(final String realmName, final String mechanismName, final boolean silent, final IdentityManager identityManager, Charset charset, Map<Pattern, Charset> userAgentCharsets)
|
| Modifier and Type | Method and Description |
|---|---|
| public AuthenticationMechanism. | authenticate(HttpServerExchange
The exchange exchange, SecurityContext securityContext)Implements io. Perform authentication of the request. |
| private static void | |
| private IdentityManager | |
| public AuthenticationMechanism. | sendChallenge(HttpServerExchange
The exchange exchange, SecurityContext The security context securityContext)Implements io. Send an authentication challenge to the remote client. |
| BASIC_PREFIX | back to summary |
|---|---|
| private static final String BASIC_PREFIX | |
| challenge | back to summary |
|---|---|
| private final String challenge | |
| CHARSET | back to summary |
|---|---|
| public static final String CHARSET | |
| charset | back to summary |
|---|---|
| private final Charset charset | |
| COLON | back to summary |
|---|---|
| private static final String COLON | |
| FACTORY | back to summary |
|---|---|
| public static final AuthenticationMechanismFactory FACTORY | |
| identityManager | back to summary |
|---|---|
| private final IdentityManager identityManager | |
| LOWERCASE_BASIC_PREFIX | back to summary |
|---|---|
| private static final String LOWERCASE_BASIC_PREFIX | |
| name | back to summary |
|---|---|
| private final String name | |
| PREFIX_LENGTH | back to summary |
|---|---|
| private static final int PREFIX_LENGTH | |
| SILENT | back to summary |
|---|---|
| public static final String SILENT | |
| silent | back to summary |
|---|---|
| private final boolean silent If silent is true then this mechanism will only take effect if there is an Authorization header. This allows you to combine basic auth with form auth, so human users will use form based auth, but allows programmatic clients to login using basic auth. | |
| USER_AGENT_CHARSETS | back to summary |
|---|---|
| public static final String USER_AGENT_CHARSETS A comma separated list of patterns and charsets. The pattern is a regular expression. Because different browsers user different encodings this allows for the correct encoding to be selected based on the current browser. In general though it is recommended that BASIC auth not be used when passwords contain characters outside ASCII, as some browsers use the current locate to determine encoding. This list must have an even number of elements, as it is interpreted as pattern,charset,pattern,charset,... | |
| userAgentCharsets | back to summary |
|---|---|
| private final Map<Pattern, Charset> userAgentCharsets | |
| BasicAuthenticationMechanism | back to summary |
|---|---|
| public BasicAuthenticationMechanism(final String realmName) | |
| BasicAuthenticationMechanism | back to summary |
|---|---|
| public BasicAuthenticationMechanism(final String realmName, final String mechanismName) | |
| BasicAuthenticationMechanism | back to summary |
|---|---|
| public BasicAuthenticationMechanism(final String realmName, final String mechanismName, final boolean silent) | |
| BasicAuthenticationMechanism | back to summary |
|---|---|
| public BasicAuthenticationMechanism(final String realmName, final String mechanismName, final boolean silent, final IdentityManager identityManager) | |
| BasicAuthenticationMechanism | back to summary |
|---|---|
| public BasicAuthenticationMechanism(final String realmName, final String mechanismName, final boolean silent, final IdentityManager identityManager, Charset charset, Map<Pattern, Charset> userAgentCharsets) | |
| 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
| |
| clear | back to summary |
|---|---|
| private static void clear(final char[] array) | |
| 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
| |