Credential Constructor
Credential()
Constructs an instance of the Credential class.
public Credential()
Credential(String, String, CredentialType, CredentialPeriod)
Constructs an instance of the Credential class for CalculateAllCommand.
public Credential(string issuer, string account, CredentialType type, CredentialPeriod period)
Parameters
Type | Name | Description |
---|---|---|
System.String | issuer | An optional string indicating the provider or service. |
System.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.
public Credential(string issuer, string account, CredentialPeriod period, CredentialType type, HashAlgorithm algorithm)
Parameters
Type | Name | Description |
---|---|---|
System.String | issuer | The issuer is an optional string indicating the provider or service. |
System.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, Int32, Nullable<Int32>, Boolean)
Constructs an instance of the Credential class for PutCommand.
public Credential(string issuer, string account, CredentialType type, HashAlgorithm algorithm, string secret, CredentialPeriod period, int digits, Nullable<int> counter, bool requireTouch)
Parameters
Type | Name | Description |
---|---|---|
System.String | issuer | The issuer is an optional string indicating the provider or service. |
System.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. |
System.String | secret | An arbitrary value. |
CredentialPeriod | period | The credential period. |
System.Int32 | digits | The number of digits in a one-time password. |
System.Nullable<System.Int32> | counter | The counter is required when the credential type is HOTP. For TOTP it's 0. |
System.Boolean | requireTouch | The credential requires the user to touch the key to generate a one-time password. |