Table of Contents

Class GetPinUvAuthTokenResponse

Namespace
Yubico.YubiKey.Fido2.Commands
Assembly
Yubico.YubiKey.dll

This is the partner response class to the GetPinTokenCommand, GetPinUvAuthTokenUsingPinCommand, and GetPinUvAuthTokenUsingUvCommand, command classes.

public class GetPinUvAuthTokenResponse : Fido2Response, IYubiKeyResponseWithData<ReadOnlyMemory<byte>>, IYubiKeyResponse
Inheritance
object
GetPinUvAuthTokenResponse
Implements
IYubiKeyResponseWithData<ReadOnlyMemory<byte>>
Inherited Members

Constructors

GetPinUvAuthTokenResponse(ResponseApdu)

Constructs a new instance of the GetPinUvAuthTokenResponse class based on a response APDU provided by the YubiKey.

public GetPinUvAuthTokenResponse(ResponseApdu responseApdu)

Parameters

responseApdu ResponseApdu

A response APDU containing the CBOR response for the getPinToken, getPinUvAuthTokenUsingPinWithPermissions, and getPinUvAuthTokenUsingUvWithPermissions subcommands of the authenticatorClientPIN CTAP2 command.

Methods

GetData()

Returns the PIN/UV Auth token generated by the YubiKey.

public ReadOnlyMemory<byte> GetData()

Returns

ReadOnlyMemory<byte>

The PinUvAuthToken.

Remarks

The token returned is encrypted using the shared secret from the protocol object used in the command.