Package com.yubico.webauthn.data
Enum Class ResidentKeyRequirement
- All Implemented Interfaces:
Serializable
,Comparable<ResidentKeyRequirement>
,Constable
This enumeration's values describe the Relying Party's requirements for client-side discoverable
credentials, also known as passkeys (formerly known as resident credentials or resident
keys).
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe client and authenticator will try to create a server-side credential if possible, and a discoverable credential (passkey) otherwise.The client and authenticator will try to create a discoverable credential (passkey) if possible, and a server-side credential otherwise.The client and authenticator will try to create a discoverable credential (passkey), and fail the registration if that is not possible. -
Method Summary
Modifier and TypeMethodDescription@NonNull String
getValue()
static ResidentKeyRequirement
Returns the enum constant of this class with the specified name.static ResidentKeyRequirement[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DISCOURAGED
The client and authenticator will try to create a server-side credential if possible, and a discoverable credential (passkey) otherwise. -
PREFERRED
The client and authenticator will try to create a discoverable credential (passkey) if possible, and a server-side credential otherwise. -
REQUIRED
The client and authenticator will try to create a discoverable credential (passkey), and fail the registration if that is not possible.
-
-
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
-
getValue
-