Enum YubiKeyCapabilities
A set of flags that describe the capabilities that are currently enabled on a YubiKey.
[Flags]
public enum YubiKeyCapabilities
Fields
All = Otp | FidoU2f | Ccid | OpenPgp | Piv | Oath | YubiHsmAuth | Fido2
A convenience member for representing the state where all applications should be enabled.
Ccid = 4
The CCID interface is enabled.
Fido2 = 512
The FIDO2 (CTAP2) application is enabled.
FidoU2f = 2
The FIDO U2F (CTAP1) application and/or interface is enabled.
None = 0
No enabled.
Oath = 32
The OATH application is enabled.
OpenPgp = 8
The OpenPGP application is enabled.
Otp = 1
The OTP application and/or interface is enabled.
Piv = 16
The PIV application is enabled.
YubiHsmAuth = 256
The YubiHSM Auth application is enabled.
Remarks
This enumeration can be easily confused with the YubiKeyApplication enumeration. While these two enumerations share many values, they serve different purposes. For one - the YubiKeyApplication enumeration cannot be treated as flags. This enumeration represents the applications and interfaces exposed and enabled by a YubiKey. It includes things like "CCID" which is an interface, not an application. OTP and FIDO U2F, in the context of older generation keys like the YubiKey 4 Series and the YubiKey NEO, are also treated these as interfaces. This is in contrast to the YubiKey 5 Series which takes an application-based approach to capabilities.