Class GetPinUvAuthTokenResponse
This is the partner response class to the GetPinTokenCommand, GetPinUvAuthTokenUsingPinCommand, and GetPinUvAuthTokenUsingUvCommand, command classes.
public class GetPinUvAuthTokenResponse : Fido2Response, IYubiKeyResponseWithData<ReadOnlyMemory<byte>>, IYubiKeyResponse
- Inheritance
-
objectGetPinUvAuthTokenResponse
- Implements
- 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
ResponseApduA response APDU containing the CBOR response for the
getPinToken
,getPinUvAuthTokenUsingPinWithPermissions
, andgetPinUvAuthTokenUsingUvWithPermissions
subcommands of theauthenticatorClientPIN
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.