public enum CredentialUsage extends java.lang.Enum<CredentialUsage>
| Enum Constant and Description |
|---|
ACCESS
The credential is used for login.
|
CONFIRMATION
The credential is used to confirm an action.
|
SECONDARY
The credential is used for login confirmation (i.e secondary access).
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowDevice()
Returns whether devices are allowed for this credential usage.
|
boolean |
allowPassword()
Returns whether passwords are allowed for this credential usage.
|
boolean |
requirePassword()
Returns whether passwords are required for this credential usage.
|
static CredentialUsage |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CredentialUsage[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CredentialUsage ACCESS
public static final CredentialUsage SECONDARY
public static final CredentialUsage CONFIRMATION
public static CredentialUsage[] values()
for (CredentialUsage c : CredentialUsage.values()) System.out.println(c);
public static CredentialUsage 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 allowDevice()
public boolean allowPassword()
public boolean requirePassword()