Show / Hide Table of Contents

GetData Method

GetData()

Gets the response to the issued challenge.

C#
public ReadOnlyMemory<byte> GetData()

Returns

ReadOnlyMemory<byte>

The response to the challenge. The size of the response will be 16 bytes if the YubicoOtp algorithm was used, or 20 bytes if the HMAC-SHA1 algorithm was used.

Implements

IYubiKeyResponseWithData<TData>.GetData()

Exceptions

Type Condition
InvalidOperationException

Thrown when Status is not Success.

MalformedYubiKeyResponseException

Thrown when the data received from the YubiKey does not match the expectations of the parser.

In this article
Back to top Generated by DocFX