Top Description Fields Constructors Methods
io.undertow.security.api

public final Enum AuthenticationMode

extends Enum<AuthenticationMode>
Class Inheritance

Enumeration to indicate the authentication mode in use.
Author
Darran Lofthouse

Field Summary

Modifier and TypeField and Description
public static final AuthenticationMode
CONSTRAINT_DRIVEN

When running in constraint driven mode the authentication mechanisms are only executed where the constraint that mandates authentication is triggered, for all other requests no authentication occurs unless requested by the internal APIs which may be exposed using the Servlet APIs.

public static final AuthenticationMode
PRO_ACTIVE

Where the authentication mode is set to pro-active each request on arrival will be passed to the defined authentication mechanisms to eagerly perform authentication if there is sufficient information available in order to do so.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static AuthenticationMode
public static AuthenticationMode[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

CONSTRAINT_DRIVENback to summary
public static final AuthenticationMode CONSTRAINT_DRIVEN

When running in constraint driven mode the authentication mechanisms are only executed where the constraint that mandates authentication is triggered, for all other requests no authentication occurs unless requested by the internal APIs which may be exposed using the Servlet APIs.

PRO_ACTIVEback to summary
public static final AuthenticationMode PRO_ACTIVE

Where the authentication mode is set to pro-active each request on arrival will be passed to the defined authentication mechanisms to eagerly perform authentication if there is sufficient information available in order to do so. A pro-active authentication could be possible for a number of reasons such as already having a SSL connection established, an identity being cached against the current session or even a browser sending in authentication headers. Running in pro-active mode the sending of the challenge to the client is still driven by the constraints defined so this is not the same as mandating security for all paths. For some mechanisms such as Digest this is a recommended mode as without it there is a risk that clients are sending in headers with unique nonce counts that go unverified risking that a malicious client could make use of them. This is also useful for applications that wish to make use of the current authenticated user if one exists without mandating that authentication occurs.

Constructor Detail

AuthenticationModeback to summary
private AuthenticationMode()

Method Detail

valueOfback to summary
public static AuthenticationMode valueOf(String name)
valuesback to summary
public static AuthenticationMode[] values()