- All Implemented Interfaces:
Serializable,Comparable<CompositeProviderFlag>,Constable
Flag driving resolution of providers.
If provider returns a FINISH state (either
SecurityResponse.SecurityStatus.SUCCESS_FINISH or SecurityResponse.SecurityStatus.FAILURE_FINISH, the processing is finished with that status.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionProvider must not be successful for this request (e.g.Provider may fail, nothing happens if it does.Provider must fail.Provider may succeed or abstain.Provider must succeed if called (if sufficient is before required, required is still ignored).If succeeds, no further providers are called, otherwise same as optional. -
Method Summary
Modifier and TypeMethodDescriptionbooleanCheck whether the status is valid for this flag.static CompositeProviderFlagReturns the enum constant of this class with the specified name.static CompositeProviderFlag[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MAY_FAIL
Provider may fail, nothing happens if it does. -
SUFFICIENT
If succeeds, no further providers are called, otherwise same as optional. -
OPTIONAL
Provider may succeed or abstain. If fails, no further providers are called and request fails. -
REQUIRED
Provider must succeed if called (if sufficient is before required, required is still ignored). -
FORBIDDEN
Provider must not be successful for this request (e.g. either it does not apply to this request, or it fails) -
MUST_FAIL
Provider must fail.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
isValid
Check whether the status is valid for this flag.- Parameters:
status- status as returned by a provider- Returns:
- true if the status is supported by this flag and the processing should continue
-