Table of Contents

Class DeleteCredentialCommand

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

Delete a credential.

public class DeleteCredentialCommand : CredentialMgmtSubCommand, IYubiKeyCommand<Fido2Response>
Inheritance
object
DeleteCredentialCommand
Implements
Inherited Members

Remarks

The partner Response class is Fido2Response. This command does not return any data, it only returns "success" or "failure", and has some FIDO2-specific error information.

This deletes a FIDO2 credential from the YubiKey. It is possible there is some large blob data associated with that credential. This command will not delete that data.

Constructors

DeleteCredentialCommand(CredentialId, ReadOnlyMemory<byte>, PinUvAuthProtocolBase)

Constructs a new instance of DeleteCredentialCommand.

public DeleteCredentialCommand(CredentialId credentialId, ReadOnlyMemory<byte> pinUvAuthToken, PinUvAuthProtocolBase authProtocol)

Parameters

credentialId CredentialId

The CredentialId of the credential to delete.

pinUvAuthToken ReadOnlyMemory<byte>

The PIN/UV Auth Token built from the PIN. This is the encrypted token key.

authProtocol PinUvAuthProtocolBase

The Auth Protocol used to build the Auth Token.

Methods

CreateResponseForApdu(ResponseApdu)

Creates the corresponding IYubiKeyResponse implementation for the current command.

public Fido2Response CreateResponseForApdu(ResponseApdu responseApdu)

Parameters

responseApdu ResponseApdu

The ResponseApdu returned by the YubiKey.

Returns

Fido2Response

The implementation of IYubiKeyResponse that parses and presents ths response APDU.