ManagementKeyAuthenticationResult Property
ManagementKeyAuthenticationResult
This reports the result of the latest management key authentication attempt.
public AuthenticateManagementKeyResult ManagementKeyAuthenticationResult { get; }
Property Value
Type | Description |
---|---|
AuthenticateManagementKeyResult |
Remarks
Upon instantiation of this class, this property will be set to
AuthenticateManagementKeyResult.Unauthenticated
. After
authentication is attempted, this will be updated to the result.
The ManagementKeyAuthenticated
property reports on whether the
management key is authenticated or not, this reports on the result of
an authentication.
For example, if the management key is authenticated, this will be
either SingleAuthenticated
or MutualFullyAuthenticated
.
If it is "single" and you want "Mutual", you know to run the
TryAuthenticateManagementKey
method again, this time
specifying mutual auth.
Another example would be if ManagementKeyAuthenticated
is
false
, you can check to see if this property is
Unauthenticated
(never attempted), or maybe it is
MutualYubiKeyAuthenticationFailed
which indicates you might be
connected to a counterfeit YubiKey.