Versions Property
Versions
List of version strings of CTAP supported by the authenticator. This is a REQUIRED value.
C#
public IReadOnlyList<string> Versions { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyList<System.String> |
Remarks
A list of strings is not the easiest to parse, but that is the way
the standard specifies reporting the supported versions. If you want
to know if a particular version is supported, call the
Contains
method of the IReadOnlyList
interface, using
the strings defined in this class. For example, suppose you build a
Fido2Session
object and you want to know whether the connected
YubiKey supports version 2.1, your code would look something like
this.
if (fido2Session.AuthenticatorInfo.Versions.Contains(AuthenticatorInfo.Version21))
{
. . .
}