public enum AttestationConveyancePreference extends java.lang.Enum<AttestationConveyancePreference> implements com.yubico.internal.util.json.JsonStringSerializable
Enum Constant and Description |
---|
DIRECT
Indicates that the Relying Party wants to receive the attestation statement as generated by the authenticator.
|
INDIRECT
Indicates that the Relying Party prefers an attestation conveyance yielding verifiable attestation statements,
but allows the client to decide how to obtain such attestation statements.
|
NONE
Indicates that the Relying Party is not interested in authenticator attestation.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toJsonString() |
static AttestationConveyancePreference |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AttestationConveyancePreference[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AttestationConveyancePreference NONE
For example, in order to potentially avoid having to obtain user consent to relay identifying information to the Relying Party, or to save a roundtrip to an Attestation CA.
This is the default value.
public static final AttestationConveyancePreference INDIRECT
Note: There is no guarantee that the Relying Party will obtain a verifiable attestation statement in this case. For example, in the case that the authenticator employs self attestation.
public static final AttestationConveyancePreference DIRECT
public static AttestationConveyancePreference[] values()
for (AttestationConveyancePreference c : AttestationConveyancePreference.values()) System.out.println(c);
public static AttestationConveyancePreference 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