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 | Fido2A convenience member for representing the state where all applications should be enabled.
Ccid = 4The CCID interface is enabled.
Fido2 = 512The FIDO2 (CTAP2) application is enabled.
FidoU2f = 2The FIDO U2F (CTAP1) application and/or interface is enabled.
None = 0No enabled.
Oath = 32The OATH application is enabled.
OpenPgp = 8The OpenPGP application is enabled.
Otp = 1The OTP application and/or interface is enabled.
Piv = 16The PIV application is enabled.
YubiHsmAuth = 256The 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.