public enum CompositeProviderFlag extends java.lang.Enum<CompositeProviderFlag>
SecurityResponse.SecurityStatus.SUCCESS_FINISH or SecurityResponse.SecurityStatus.FAILURE_FINISH, the processing is finished with that status.| Enum Constant and Description |
|---|
FORBIDDEN
Provider must not be successful for this request (e.g.
|
MAY_FAIL
Provider may fail, nothing happens if it does.
|
MUST_FAIL
Provider must fail.
|
OPTIONAL
Provider may succeed or abstain.
|
REQUIRED
Provider must succeed if called (if sufficient is before required, required is still ignored).
|
SUFFICIENT
If succeeds, no further providers are called, otherwise same as optional.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isValid(SecurityResponse.SecurityStatus status)
Check whether the status is valid for this flag.
|
static CompositeProviderFlag |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CompositeProviderFlag[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CompositeProviderFlag MAY_FAIL
public static final CompositeProviderFlag SUFFICIENT
public static final CompositeProviderFlag OPTIONAL
public static final CompositeProviderFlag REQUIRED
public static final CompositeProviderFlag FORBIDDEN
public static final CompositeProviderFlag MUST_FAIL
public static CompositeProviderFlag[] values()
for (CompositeProviderFlag c : CompositeProviderFlag.values()) System.out.println(c);
public static CompositeProviderFlag valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic boolean isValid(SecurityResponse.SecurityStatus status)
status - status as returned by a providerCopyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.