public enum PublicKeyCredentialType extends java.lang.Enum<PublicKeyCredentialType> implements com.yubico.internal.util.json.JsonStringSerializable
It is an extensions point; values may be added to it in the future, as more credential types are defined. The values of this enumeration are used for versioning the Authentication Assertion and attestation structures according to the type of the authenticator.
Currently one credential type is defined, namely PUBLIC_KEY
.
Enum Constant and Description |
---|
PUBLIC_KEY |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toJsonString() |
static PublicKeyCredentialType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PublicKeyCredentialType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PublicKeyCredentialType PUBLIC_KEY
public static PublicKeyCredentialType[] values()
for (PublicKeyCredentialType c : PublicKeyCredentialType.values()) System.out.println(c);
public static PublicKeyCredentialType 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 java.lang.String toJsonString()
toJsonString
in interface com.yubico.internal.util.json.JsonStringSerializable