Enum AuthenticatorBase.AuthenticationResult
- java.lang.Object
-
- java.lang.Enum<AuthenticatorBase.AuthenticationResult>
-
- org.apache.catalina.authenticator.AuthenticatorBase.AuthenticationResult
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<AuthenticatorBase.AuthenticationResult>
- Enclosing class:
- AuthenticatorBase
protected static enum AuthenticatorBase.AuthenticationResult extends java.lang.Enum<AuthenticatorBase.AuthenticationResult>
Used to pass authentication results that are more complex than a simple pass/fail.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FAILEDThe authentication failed.PASSEDThe authentication was successful.PASSED_CONSTRAINTS_NEED_REFRESHThe authentication was successful but before proceeding the constraints need to be refreshed because one or more relevant properties of the request (method, URI) have changed.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetAuthenticated()static AuthenticatorBase.AuthenticationResultvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static AuthenticatorBase.AuthenticationResult[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FAILED
public static final AuthenticatorBase.AuthenticationResult FAILED
The authentication failed.
-
PASSED_CONSTRAINTS_NEED_REFRESH
public static final AuthenticatorBase.AuthenticationResult PASSED_CONSTRAINTS_NEED_REFRESH
The authentication was successful but before proceeding the constraints need to be refreshed because one or more relevant properties of the request (method, URI) have changed.
-
PASSED
public static final AuthenticatorBase.AuthenticationResult PASSED
The authentication was successful.
-
-
Method Detail
-
values
public static AuthenticatorBase.AuthenticationResult[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AuthenticatorBase.AuthenticationResult c : AuthenticatorBase.AuthenticationResult.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AuthenticatorBase.AuthenticationResult valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getAuthenticated
public boolean getAuthenticated()
-
-