AuthenticatorOptions Class
Namespace: Yubico.YubiKey.Fido2 Assembly: Yubico.YubiKey.dllAll the standard Option strings.
public static class AuthenticatorOptions : Object
Remarks
Some FIDO2 operations request the caller specify options. They are always provided as a key/value pair where the key is a string and the value is a boolean.
See section 6.4 of the FIDO2 standard for a list of all the defined
options and their meanings. It is the chart with the column Option ID.
Each option ID is a key of key/value. It is also the string that should
be used. For example, the Option ID of credMgmt
is defined as
"Credential Management Support" and the meanings of true
,
false
, and not present are described. To specify this Option, use
the string "credMgmt".
When specifying an option (e.g.,
see Options of the
MakeCredentialParameters
class) provide the string and boolean.
You can use this class to specify the string (the key of key/value). This
might be helpful if you rely on IDE features such as autocompletion or
symbolic searching. You can also specify the option string directly, if
you so choose. Either choice is valid; you should choose the one most
appropriate to your project's development style.
var makeCredParams = new MakeCredentialParameters(relyingParty, userEntity)
{
ClientDataHash = clientDataHash,
};
makeCredParams.AddOption("rk", true);
// or
makeCredParams.AddOption(AuthenticatorOptions.rk, true);
Fields
Name | Description |
---|---|
alwaysUv | The string to use when specifying the |
authnrCfg | The string to use when specifying the |
bioEnroll | The string to use when specifying the |
clientPin | The string to use when specifying the |
credentialMgmtPreview | The string to use when specifying the |
credMgmt | The string to use when specifying the |
ep | The string to use when specifying the |
largeBlobs | The string to use when specifying the |
makeCredUvNotRqd | The string to use when specifying the |
noMcGaPermissionsWithClientPin | The string to use when specifying the |
pinUvAuthToken | The string to use when specifying the |
plat | The string to use when specifying the |
rk | The string to use when specifying the |
setMinPINLength | The string to use when specifying the |
up | The string to use when specifying the |
userVerificationMgmtPreview | The string to use when specifying the |
uv | The string to use when specifying the |
uvAcfg | The string to use when specifying the |
uvBioEnroll | The string to use when specifying the |
Methods
Name | Description |
---|---|
GetDefaultOptionValue(String) | Return the default value for the given |