Class AddCredentialResponse
- Namespace
- Yubico.YubiKey.YubiHsmAuth.Commands
- Assembly
- Yubico.YubiKey.dll
The response class for adding a credential to the YubiHSM Auth application.
public class AddCredentialResponse : BaseYubiHsmAuthResponseWithRetries, IYubiKeyResponse
- Inheritance
-
objectAddCredentialResponse
- Implements
- Inherited Members
Remarks
If authentication failed, the Status will be set to AuthenticationRequired and RetriesRemaining will contain the number of retries remaining for the management key.
The associated command class is AddCredentialCommand.
Constructors
AddCredentialResponse(ResponseApdu)
Constructs an AddCredentialResponse based on a ResponseApdu received from the YubiKey.
public AddCredentialResponse(ResponseApdu responseApdu)
Parameters
responseApdu
ResponseApduThe ResponseApdu returned by the YubiKey.
Properties
StatusCodeMap
Retrieves the details describing the processing state.
protected override YubiKeyResponse.ResponseStatusPair StatusCodeMap { get; }
Property Value
- YubiKeyResponse.ResponseStatusPair
The ResponseStatus and a descriptive message, as a YubiKeyResponse.ResponseStatusPair.
Remarks
Implementers of subtypes can override this member to change or add mappings.