public final class AuthenticatorTransport extends java.lang.Object implements java.lang.Comparable<AuthenticatorTransport>
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.
| Modifier and Type | Field and Description |
|---|---|
static AuthenticatorTransport |
BLE
Indicates the respective authenticator can be contacted over Bluetooth Smart (Bluetooth Low
Energy / BLE).
|
static AuthenticatorTransport |
HYBRID
Deprecated.
EXPERIMENTAL: This feature is from a not yet mature standard; it could change as
the standard matures.
|
static AuthenticatorTransport |
INTERNAL
Indicates the respective authenticator is contacted using a client device-specific transport.
|
static AuthenticatorTransport |
NFC
Indicates the respective authenticator can be contacted over Near Field Communication (NFC).
|
static AuthenticatorTransport |
USB
Indicates the respective authenticator can be contacted over removable USB.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(AuthenticatorTransport other) |
boolean |
equals(java.lang.Object o) |
@NonNull java.lang.String |
getId() |
int |
hashCode() |
static AuthenticatorTransport |
of(@NonNull java.lang.String id) |
java.lang.String |
toString() |
static AuthenticatorTransport |
valueOf(java.lang.String name) |
static AuthenticatorTransport[] |
values() |
public static final AuthenticatorTransport USB
public static final AuthenticatorTransport NFC
public static final AuthenticatorTransport BLE
@Deprecated public static final AuthenticatorTransport HYBRID
public static final AuthenticatorTransport INTERNAL
public static AuthenticatorTransport[] values()
AuthenticatorTransport known by
this implementation.public static AuthenticatorTransport of(@NonNull @NonNull java.lang.String id)
public static AuthenticatorTransport valueOf(java.lang.String name)
name equals "USB", "NFC", "BLE",
"HYBRID" or "INTERNAL", returns the constant by that name.java.lang.IllegalArgumentException - if name is anything else.of(String)public int compareTo(AuthenticatorTransport other)
compareTo in interface java.lang.Comparable<AuthenticatorTransport>@NonNull public @NonNull java.lang.String getId()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object