public enum KeyProtectionType extends java.lang.Enum<KeyProtectionType>
| Enum Constant and Description |
|---|
KEY_PROTECTION_HARDWARE
This flag SHOULD be set if the authenticator uses hardware-based key management.
|
KEY_PROTECTION_REMOTE_HANDLE
This flag MUST be set if the authenticator does not store (wrapped) UAuth keys at the client,
but relies on a server-provided key handle.
|
KEY_PROTECTION_SECURE_ELEMENT
This flag SHOULD be set if the authenticator uses a Secure Element [SecureElement] for key
management.
|
KEY_PROTECTION_SOFTWARE
This flag MUST be set if the authenticator uses software-based key management.
|
KEY_PROTECTION_TEE
This flag SHOULD be set if the authenticator uses the Trusted Execution Environment [TEE] for
key management.
|
| Modifier and Type | Method and Description |
|---|---|
static KeyProtectionType |
fromName(java.lang.String name) |
static KeyProtectionType |
fromValue(short value) |
java.lang.String |
getName() |
short |
getValue() |
static KeyProtectionType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static KeyProtectionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final KeyProtectionType KEY_PROTECTION_SOFTWARE
KEY_PROTECTION_HARDWARE, KEY_PROTECTION_TEE,
KEY_PROTECTION_SECURE_ELEMENT.
NOTE: The above requirements apply to authenticators; this library DOES NOT enforce them.
public static final KeyProtectionType KEY_PROTECTION_HARDWARE
KEY_PROTECTION_SOFTWARE.
NOTE: The above requirements apply to authenticators; this library DOES NOT enforce them.
public static final KeyProtectionType KEY_PROTECTION_TEE
KEY_PROTECTION_HARDWARE. Mutually exclusive in authenticator metadata with KEY_PROTECTION_SOFTWARE, KEY_PROTECTION_SECURE_ELEMENT.
NOTE: The above requirements apply to authenticators; this library DOES NOT enforce them.
public static final KeyProtectionType KEY_PROTECTION_SECURE_ELEMENT
KEY_PROTECTION_HARDWARE. Mutually exclusive in authenticator metadata with KEY_PROTECTION_TEE, KEY_PROTECTION_SOFTWARE.
NOTE: The above requirements apply to authenticators; this library DOES NOT enforce them.
public static final KeyProtectionType KEY_PROTECTION_REMOTE_HANDLE
NOTE: The above requirements apply to authenticators; this library DOES NOT enforce them.
public static KeyProtectionType[] values()
for (KeyProtectionType c : KeyProtectionType.values()) System.out.println(c);
public static KeyProtectionType 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 static KeyProtectionType fromValue(short value)
value matches any KeyProtectionType constant, returns that
constant instance. Otherwise throws IllegalArgumentException.public static KeyProtectionType fromName(java.lang.String name)
name matches any Key constant, returns that constant instance.
Otherwise throws IllegalArgumentException.public short getValue()
public java.lang.String getName()