Show / Hide Table of Contents

GetData Method

GetData()

Determines the result of the management key authentication.

C#
public AuthenticateManagementKeyResult GetData()

Returns

AuthenticateManagementKeyResult

An AuthenticateManagementKeyResult enum.

Implements

IYubiKeyResponseWithData<TData>.GetData()

Exceptions

Type Condition
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.

In this article
Back to top Generated by DocFX