Enum Class UserVerificationRequirement

java.lang.Object
java.lang.Enum<UserVerificationRequirement>
com.yubico.webauthn.data.UserVerificationRequirement
All Implemented Interfaces:
Serializable, Comparable<UserVerificationRequirement>, Constable

public enum UserVerificationRequirement extends Enum<UserVerificationRequirement>
A WebAuthn Relying Party may require user verification for some of its operations but not for others, and may use this type to express its needs.
See Also:
  • Enum Constant Details

    • DISCOURAGED

      public static final UserVerificationRequirement DISCOURAGED
      This value indicates that the Relying Party does not want user verification employed during the operation (e.g., in the interest of minimizing disruption to the user interaction flow).
    • PREFERRED

      public static final UserVerificationRequirement PREFERRED
      This value indicates that the Relying Party prefers user verification for the operation if possible, but will not fail the operation if the response does not have the AuthenticatorDataFlags.UV flag set.
    • REQUIRED

      public static final UserVerificationRequirement REQUIRED
      Indicates that the Relying Party requires user verification for the operation and will fail the operation if the response does not have the AuthenticatorDataFlags.UV flag set.
  • Method Details

    • values

      public static UserVerificationRequirement[] 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

      public static UserVerificationRequirement valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getValue

      @NonNull public @NonNull String getValue()