public enum AuthenticatorTransport extends java.lang.Enum<AuthenticatorTransport> implements com.yubico.internal.util.json.JsonStringSerializable
Authenticators may implement various transports for communicating with clients. This enumeration defines hints as to how clients might communicate with a particular authenticator in order to obtain an assertion for a specific credential. Note that these hints represent the WebAuthn Relying Party's best belief as to how an authenticator may be reached. A Relying Party may obtain a list of transports hints from some attestation statement formats or via some out-of-band mechanism; it is outside the scope of the Web Authentication specification to define that mechanism.
Enum Constant and Description |
---|
BLE
Indicates the respective authenticator can be contacted over Bluetooth Smart (Bluetooth Low Energy / BLE).
|
INTERNAL
Indicates the respective authenticator is contacted using a client device-specific transport.
|
NFC
Indicates the respective authenticator can be contacted over Near Field Communication (NFC).
|
USB
Indicates the respective authenticator can be contacted over removable USB.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toJsonString() |
static AuthenticatorTransport |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AuthenticatorTransport[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AuthenticatorTransport USB
public static final AuthenticatorTransport NFC
public static final AuthenticatorTransport BLE
public static final AuthenticatorTransport INTERNAL
public static AuthenticatorTransport[] values()
for (AuthenticatorTransport c : AuthenticatorTransport.values()) System.out.println(c);
public static AuthenticatorTransport 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