Class DeleteCredentialCommand
Delete a credential.
public class DeleteCredentialCommand : CredentialMgmtSubCommand, IYubiKeyCommand<Fido2Response>
- Inheritance
-
objectDeleteCredentialCommand
- 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
CredentialIdThe
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
PinUvAuthProtocolBaseThe 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
ResponseApduThe ResponseApdu returned by the YubiKey.
Returns
- Fido2Response
The implementation of IYubiKeyResponse that parses and presents ths response APDU.