Enum MatcherProtectionType
- java.lang.Object
-
- java.lang.Enum<MatcherProtectionType>
-
- com.yubico.webauthn.extension.uvm.MatcherProtectionType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<MatcherProtectionType>
public enum MatcherProtectionType extends java.lang.Enum<MatcherProtectionType>
The MATCHER_PROTECTION constants are flags in a bit field represented as a 16 bit long integer. They describe the method an authenticator uses to protect the matcher that performs user verification. These constants are reported and queried through the UAF Discovery APIs and used to form authenticator policies in UAF protocol messages. Refer to [UAFAuthnrCommands] for more details on the matcher component. Each constant has a case-sensitive string representation (in quotes), which is used in the authoritative metadata for FIDO authenticators.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MATCHER_PROTECTION_ON_CHIP
This flag SHOULD be set if the authenticator's matcher is running on the chip.MATCHER_PROTECTION_SOFTWARE
This flag MUST be set if the authenticator's matcher is running in software.MATCHER_PROTECTION_TEE
This flag SHOULD be set if the authenticator's matcher is running inside the Trusted Execution Environment [TEE].
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MatcherProtectionType
fromName(java.lang.String name)
static MatcherProtectionType
fromValue(int value)
java.lang.String
getName()
short
getValue()
static MatcherProtectionType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static MatcherProtectionType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MATCHER_PROTECTION_SOFTWARE
public static final MatcherProtectionType MATCHER_PROTECTION_SOFTWARE
This flag MUST be set if the authenticator's matcher is running in software. Exclusive in authenticator metadata withMATCHER_PROTECTION_TEE
,MATCHER_PROTECTION_ON_CHIP
.NOTE: The above requirements apply to authenticators; this library DOES NOT enforce them.
-
MATCHER_PROTECTION_TEE
public static final MatcherProtectionType MATCHER_PROTECTION_TEE
This flag SHOULD be set if the authenticator's matcher is running inside the Trusted Execution Environment [TEE]. Mutually exclusive in authenticator metadata withMATCHER_PROTECTION_SOFTWARE
,MATCHER_PROTECTION_ON_CHIP
.NOTE: The above requirements apply to authenticators; this library DOES NOT enforce them.
-
MATCHER_PROTECTION_ON_CHIP
public static final MatcherProtectionType MATCHER_PROTECTION_ON_CHIP
This flag SHOULD be set if the authenticator's matcher is running on the chip. Mutually exclusive in authenticator metadata withMATCHER_PROTECTION_TEE
,MATCHER_PROTECTION_SOFTWARE
NOTE: The above requirements apply to authenticators; this library DOES NOT enforce them.
-
-
Method Detail
-
values
public static MatcherProtectionType[] 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 (MatcherProtectionType c : MatcherProtectionType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MatcherProtectionType 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
-
fromValue
public static MatcherProtectionType fromValue(int value)
- Returns:
- If
value
matches anyMatcherProtectionType
constant, returns that constant instance. Otherwise throwsIllegalArgumentException
.
-
fromName
public static MatcherProtectionType fromName(java.lang.String name)
- Returns:
- If
name
matches anyMatcherProtectionType
constant, returns that constant instance. Otherwise throwsIllegalArgumentException
.
-
getValue
public short getValue()
-
getName
public java.lang.String getName()
-
-