GetData Method
GetData()
Gets the response to the issued challenge.
C#
public ReadOnlyMemory<byte> GetData()
Returns
System.ReadOnlyMemory<System.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
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | |
MalformedYubiKeyResponseException | Thrown when the data received from the YubiKey does not match the expectations of the parser. |