Show / Hide Table of Contents

Credential Constructor

Credential()

Constructs an instance of the Credential class.

C#
public Credential()

Credential(string?, string, CredentialType, CredentialPeriod)

Constructs an instance of the Credential class for CalculateAllCommand.

C#
public Credential(string? issuer, string account, CredentialType type, CredentialPeriod period)

Parameters

Type Name Description
string issuer

An optional string indicating the provider or service.

string account

The account name that usually is the user's email address.

CredentialType type

The credential type, TOTP or HOTP.

CredentialPeriod period

The credential period.

Credential(string?, string, CredentialPeriod, CredentialType, HashAlgorithm)

Constructs an instance of the Credential class for List Command.

C#
public Credential(string? issuer, string account, CredentialPeriod period, CredentialType type, HashAlgorithm algorithm)

Parameters

Type Name Description
string issuer

The issuer is an optional string indicating the provider or service.

string account

The account name that usually is the user's email address.

CredentialPeriod period

The credential period.

CredentialType type

The credential type, TOTP or HOTP.

HashAlgorithm algorithm

The types of hash algorithm.

Credential(string?, string, CredentialType, HashAlgorithm, string, CredentialPeriod, int, int?, bool)

Constructs an instance of the Credential class for PutCommand.

C#
public Credential(string? issuer, string account, CredentialType type, HashAlgorithm algorithm, string secret, CredentialPeriod period, int digits, int? counter, bool requireTouch)

Parameters

Type Name Description
string issuer

The issuer is an optional string indicating the provider or service.

string account

The account name that usually is the user's email address.

CredentialType type

The credential type, TOTP or HOTP.

HashAlgorithm algorithm

The type of hash algorithm.

string secret

An arbitrary value.

CredentialPeriod period

The credential period.

int digits

The number of digits in a one-time password.

int? counter

The counter is required when the credential type is HOTP. For TOTP it's 0.

bool requireTouch

The credential requires the user to touch the key to generate a one-time password.

In this article
Back to top Generated by DocFX