GetOptionValue Method
GetOptionValue(String)
Get the value of the given option
in this
AuthenticatorInfo
.
public OptionValue GetOptionValue(string option)
Parameters
Type | Name | Description |
---|---|---|
System.String | option |
Returns
An OptionValue
enum that specifies the option as either
True
, False
, NotSupported
, or Unknown
.
Remarks
An option can be "true", "false", or "not supported". This method will determine which value is appropriate for the given option.
The FIDO2 standard specifies that each option has a value, even if an authenticator does not list it. If an option is not listed, its value is a default, and the standard specifies default values for each option. This method will determine if an option is listed, and if so, return the listed value. If not, it will return the default value. A default value can be "true", "false", or "not supported".
If the option is unknown (not one of the standard-defined options), and it is not listed, this method will return "unknown".