Show / Hide Table of Contents

GetData Method

GetData()

Gets the metadata from the YubiKey response.

C#
public PivMetadata GetData()

Returns

PivMetadata

The data in the response APDU, presented as a PivMetadata object.

Implements

IYubiKeyResponseWithData<TData>.GetData()

Exceptions

Type Condition
InvalidOperationException

Thrown when Status is not Success.

Remarks

If the Status is ResponseStatus.NoData, the slot is empty and this method will throw an exception. Hence, it is a good idea to check Status before calling this method.

In this article
Back to top Generated by DocFX