Table of Contents

Class CredentialRetryPair

Namespace
Yubico.YubiKey.YubiHsmAuth
Assembly
Yubico.YubiKey.dll

This class represents a Credential stored in the YubiKey's YubiHSM Auth application, and the number of retries remaining.

public class CredentialRetryPair
Inheritance
object
CredentialRetryPair

Remarks

This class is used in ListCredentialsResponse.

Constructors

CredentialRetryPair(Credential, int)

Constructs an instance of the CredentialRetryPair class.

public CredentialRetryPair(Credential credential, int retries)

Parameters

credential Credential
The Credential stored in the YubiHSM Auth application.
retries int
The number of retries remaining to access the Credential. Must be a non-negative value.

Exceptions

ArgumentOutOfRangeException

Thrown when retries is negative.

Properties

Credential

The Credential stored in the YubiHSM Auth application.

public Credential Credential { get; }

Property Value

Credential

Retries

The number of retries remaining to access the Credential.

public int Retries { get; }

Property Value

int