Enum AttachmentHint
- java.lang.Object
-
- java.lang.Enum<AttachmentHint>
-
- com.yubico.fido.metadata.AttachmentHint
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<AttachmentHint>
public enum AttachmentHint extends java.lang.Enum<AttachmentHint>
The ATTACHMENT_HINT constants are flags in a bit field represented as a 32 bit long. They describe the method FIDO authenticators use to communicate with the FIDO User Device. These constants are reported and queried through the UAF Discovery APIs [UAFAppAPIAndTransport], and used to form Authenticator policies in UAF protocol messages. Because the connection state and topology of an authenticator may be transient, these values are only hints that can be used by server-supplied policy to guide the user experience, e.g. to prefer a device that is connected and ready for authenticating or confirming a low-value transaction, rather than one that is more secure but requires more user effort. Each constant has a case-sensitive string representation (in quotes), which is used in the authoritative metadata for FIDO authenticators. NoteThese flags are not a mandatory part of authenticator metadata and, when present, only indicate possible states that may be reported during authenticator discovery.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ATTACHMENT_HINT_BLUETOOTH
This flag MAY be set to indicate that an external authenticator is able to communicate using Bluetooth with the FIDO User Device.ATTACHMENT_HINT_EXTERNAL
This flag MAY be set to indicate, for a hardware-based authenticator, that it is removable or remote from the FIDO User Device.ATTACHMENT_HINT_INTERNAL
This flag MAY be set to indicate that the authenticator is permanently attached to the FIDO User Device.ATTACHMENT_HINT_NETWORK
This flag MAY be set to indicate that the authenticator is connected to the FIDO User Device over a non-exclusive network (e.g.ATTACHMENT_HINT_NFC
This flag MAY be set to indicate that an external authenticator is able to communicate by NFC to the FIDO User Device.ATTACHMENT_HINT_READY
This flag MAY be set to indicate that an external authenticator is in a "ready" state.ATTACHMENT_HINT_WIFI_DIRECT
This flag MAY be set to indicate that an external authenticator is able to communicate using WiFi Direct with the FIDO User Device.ATTACHMENT_HINT_WIRED
This flag MAY be set to indicate that an external authenticator currently has an exclusive wired connection, e.g.ATTACHMENT_HINT_WIRELESS
This flag MAY be set to indicate that an external authenticator communicates with the FIDO User Device through a personal area or otherwise non-routed wireless protocol, such as Bluetooth or NFC.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AttachmentHint
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static AttachmentHint[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ATTACHMENT_HINT_INTERNAL
public static final AttachmentHint ATTACHMENT_HINT_INTERNAL
This flag MAY be set to indicate that the authenticator is permanently attached to the FIDO User Device.A device such as a smartphone may have authenticator functionality that is able to be used both locally and remotely. In such a case, the FIDO client MUST filter and exclusively report only the relevant bit during Discovery and when performing policy matching.
This flag cannot be combined with any other
AttachmentHint
flags.
-
ATTACHMENT_HINT_EXTERNAL
public static final AttachmentHint ATTACHMENT_HINT_EXTERNAL
This flag MAY be set to indicate, for a hardware-based authenticator, that it is removable or remote from the FIDO User Device.A device such as a smartphone may have authenticator functionality that is able to be used both locally and remotely. In such a case, the FIDO UAF Client MUST filter and exclusively report only the relevant bit during discovery and when performing policy matching. This flag MUST be combined with one or more other
AttachmentHint
flag(s).
-
ATTACHMENT_HINT_WIRED
public static final AttachmentHint ATTACHMENT_HINT_WIRED
This flag MAY be set to indicate that an external authenticator currently has an exclusive wired connection, e.g. through USB, Firewire or similar, to the FIDO User Device.
-
ATTACHMENT_HINT_WIRELESS
public static final AttachmentHint ATTACHMENT_HINT_WIRELESS
This flag MAY be set to indicate that an external authenticator communicates with the FIDO User Device through a personal area or otherwise non-routed wireless protocol, such as Bluetooth or NFC.
-
ATTACHMENT_HINT_NFC
public static final AttachmentHint ATTACHMENT_HINT_NFC
This flag MAY be set to indicate that an external authenticator is able to communicate by NFC to the FIDO User Device. As part of authenticator metadata, or when reporting characteristics through discovery, if this flag is set, theATTACHMENT_HINT_WIRELESS
flag SHOULD also be set as well.
-
ATTACHMENT_HINT_BLUETOOTH
public static final AttachmentHint ATTACHMENT_HINT_BLUETOOTH
This flag MAY be set to indicate that an external authenticator is able to communicate using Bluetooth with the FIDO User Device. As part of authenticator metadata, or when reporting characteristics through discovery, if this flag is set, theATTACHMENT_HINT_WIRELESS
flag SHOULD also be set.
-
ATTACHMENT_HINT_NETWORK
public static final AttachmentHint ATTACHMENT_HINT_NETWORK
This flag MAY be set to indicate that the authenticator is connected to the FIDO User Device over a non-exclusive network (e.g. over a TCP/IP LAN or WAN, as opposed to a PAN or point-to-point connection).
-
ATTACHMENT_HINT_READY
public static final AttachmentHint ATTACHMENT_HINT_READY
This flag MAY be set to indicate that an external authenticator is in a "ready" state. This flag is set by the ASM at its discretion.
-
ATTACHMENT_HINT_WIFI_DIRECT
public static final AttachmentHint ATTACHMENT_HINT_WIFI_DIRECT
This flag MAY be set to indicate that an external authenticator is able to communicate using WiFi Direct with the FIDO User Device. As part of authenticator metadata and when reporting characteristics through discovery, if this flag is set, theATTACHMENT_HINT_WIRELESS
flag SHOULD also be set.
-
-
Method Detail
-
values
public static AttachmentHint[] 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 (AttachmentHint c : AttachmentHint.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AttachmentHint 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
-
-