Package com.yubico.webauthn.data
Enum ResidentKeyRequirement
- java.lang.Object
-
- java.lang.Enum<ResidentKeyRequirement>
-
- com.yubico.webauthn.data.ResidentKeyRequirement
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ResidentKeyRequirement>
public enum ResidentKeyRequirement extends java.lang.Enum<ResidentKeyRequirement>
This enumeration's values describe the Relying Party's requirements for client-side discoverable credentials (formerly known as resident credentials or resident keys):
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DISCOURAGED
The client and authenticator will try to create a server-side credential if possible, and a discoverable credential otherwise.PREFERRED
The client and authenticator will try to create a discoverable credential if possible, and a server-side credential otherwise.REQUIRED
The client and authenticator will try to create a discoverable credential, and fail the registration if that is not possible.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description @NonNull java.lang.String
getValue()
static ResidentKeyRequirement
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ResidentKeyRequirement[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DISCOURAGED
public static final ResidentKeyRequirement DISCOURAGED
The client and authenticator will try to create a server-side credential if possible, and a discoverable credential otherwise.
-
PREFERRED
public static final ResidentKeyRequirement PREFERRED
The client and authenticator will try to create a discoverable credential if possible, and a server-side credential otherwise.
-
REQUIRED
public static final ResidentKeyRequirement REQUIRED
The client and authenticator will try to create a discoverable credential, and fail the registration if that is not possible.
-
-
Method Detail
-
values
public static ResidentKeyRequirement[] 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 (ResidentKeyRequirement c : ResidentKeyRequirement.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ResidentKeyRequirement 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
-
getValue
@NonNull public @NonNull java.lang.String getValue()
-
-