Package com.yubico.webauthn.attestation
Enum Transport
- java.lang.Object
-
- java.lang.Enum<Transport>
-
- com.yubico.webauthn.attestation.Transport
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BLE
The authenticator supports communication via Bluetooth Low Energy (BLE).BT_CLASSIC
The authenticator supports communication via classic Bluetooth.LIGHTNING
The authenticator supports communication via Lightning.NFC
The authenticator supports communication via Near Field Communication (NFC).USB
The authenticator supports communication via USB.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.Set<Transport>
fromInt(int bits)
static int
toInt(Transport... transports)
static int
toInt(java.lang.Iterable<Transport> transports)
static Transport
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Transport[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BT_CLASSIC
public static final Transport BT_CLASSIC
The authenticator supports communication via classic Bluetooth.
-
BLE
public static final Transport BLE
The authenticator supports communication via Bluetooth Low Energy (BLE).
-
USB
public static final Transport USB
The authenticator supports communication via USB.
-
NFC
public static final Transport NFC
The authenticator supports communication via Near Field Communication (NFC).
-
LIGHTNING
public static final Transport LIGHTNING
The authenticator supports communication via Lightning.
-
-
Method Detail
-
values
public static Transport[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Transport c : Transport.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Transport valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
fromInt
public static java.util.Set<Transport> fromInt(int bits)
-
toInt
public static int toInt(java.lang.Iterable<Transport> transports)
-
toInt
public static int toInt(Transport... transports)
-
-