GetData Method
GetData()
Determines the result of the management key authentication.
C#
public AuthenticateManagementKeyResult GetData()
Returns
An AuthenticateManagementKeyResult
enum.
Implements
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | Thrown if Status is neither Success nor AuthenticationRequired. |
MalformedYubiKeyResponseException | Thrown when the data provided does not meet the expectations, and cannot be parsed. |
Remarks
If this is mutual authentication, this method will compare the value from
the response APDU to the YubiKey Authentication Challenge
. If they are the
same, the YubiKey will have authenticated itself to the Off-Card app.
It is suggested to check the value of Status before calling this method. If the value is neither Success nor AuthenticationRequired, this method will throw an exception.