Package com.yubico.webauthn.data
Class AuthenticatorTransport
java.lang.Object
com.yubico.webauthn.data.AuthenticatorTransport
- All Implemented Interfaces:
Comparable<AuthenticatorTransport>
public final class AuthenticatorTransport
extends Object
implements Comparable<AuthenticatorTransport>
Authenticators may communicate with Clients using a variety of transports. This enumeration
defines a hint 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 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 this specification to define that mechanism.
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.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final AuthenticatorTransport
Indicates the respective authenticator can be contacted over Bluetooth Smart (Bluetooth Low Energy / BLE).static final AuthenticatorTransport
Deprecated.EXPERIMENTAL: This feature is from a not yet mature standard; it could change as the standard matures.static final AuthenticatorTransport
Indicates the respective authenticator is contacted using a client device-specific transport.static final AuthenticatorTransport
Indicates the respective authenticator can be contacted over Near Field Communication (NFC).static final AuthenticatorTransport
Indicates the respective authenticator can be contacted over removable USB. -
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(AuthenticatorTransport other) boolean
@NonNull String
getId()
int
hashCode()
static AuthenticatorTransport
toString()
static AuthenticatorTransport
static AuthenticatorTransport[]
values()
-
Field Details
-
USB
Indicates the respective authenticator can be contacted over removable USB. -
NFC
Indicates the respective authenticator can be contacted over Near Field Communication (NFC). -
BLE
Indicates the respective authenticator can be contacted over Bluetooth Smart (Bluetooth Low Energy / BLE). -
HYBRID
Deprecated.EXPERIMENTAL: This feature is from a not yet mature standard; it could change as the standard matures.Indicates the respective authenticator can be contacted using a combination of (often separate) data-transport and proximity mechanisms. This supports, for example, authentication on a desktop computer using a smartphone. -
INTERNAL
Indicates the respective authenticator is contacted using a client device-specific transport. These authenticators are not removable from the client device.
-
-
Method Details
-
values
- Returns:
- An array containing all predefined values of
AuthenticatorTransport
known by this implementation.
-
of
-
valueOf
- Returns:
- If
name
equals"USB"
,"NFC"
,"BLE"
,"HYBRID"
or"INTERNAL"
, returns the constant by that name. - Throws:
IllegalArgumentException
- ifname
is anything else.- See Also:
-
compareTo
- Specified by:
compareTo
in interfaceComparable<AuthenticatorTransport>
-
getId
-
equals
-
hashCode
public int hashCode() -
toString
-