Class CreateTotpDeviceCustomOptions
CreateTotpDeviceCustomOptions
Implements
Inherited Members
Namespace: mailslurp.Model
Assembly: mailslurp.dll
Syntax
[DataContract(Name = "CreateTotpDeviceCustomOptions")]
public class CreateTotpDeviceCustomOptions : IValidatableObject
Constructors
View SourceCreateTotpDeviceCustomOptions()
Initializes a new instance of the CreateTotpDeviceCustomOptions class.
Declaration
[JsonConstructor]
protected CreateTotpDeviceCustomOptions()
CreateTotpDeviceCustomOptions(string, string, string, string, int?, int?, string)
Initializes a new instance of the CreateTotpDeviceCustomOptions class.
Declaration
public CreateTotpDeviceCustomOptions(string secret = null, string name = null, string username = null, string issuer = null, int? digits = 6, int? period = 30, string algorithm = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | secret | The base32 encoded secret provided by the identity provider for the TOTP device. (required). |
| string | name | Name for labeling the TOTP device. |
| string | username | Optional username for the TOTP device. |
| string | issuer | Optional issuer override for the TOTP device. |
| int? | digits | Optional number of digits in TOTP code (default to 6). |
| int? | period | Optional period in seconds for TOTP code expiration (default to 30). |
| string | algorithm | Optional algorithm override. |
Properties
View SourceAlgorithm
Optional algorithm override
Declaration
[DataMember(Name = "algorithm", EmitDefaultValue = true)]
public string Algorithm { get; set; }
Property Value
| Type | Description |
|---|---|
| string | Optional algorithm override |
Digits
Optional number of digits in TOTP code
Declaration
[DataMember(Name = "digits", EmitDefaultValue = true)]
public int? Digits { get; set; }
Property Value
| Type | Description |
|---|---|
| int? | Optional number of digits in TOTP code |
Issuer
Optional issuer override for the TOTP device
Declaration
[DataMember(Name = "issuer", EmitDefaultValue = true)]
public string Issuer { get; set; }
Property Value
| Type | Description |
|---|---|
| string | Optional issuer override for the TOTP device |
Name
Name for labeling the TOTP device
Declaration
[DataMember(Name = "name", EmitDefaultValue = true)]
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string | Name for labeling the TOTP device |
Period
Optional period in seconds for TOTP code expiration
Declaration
[DataMember(Name = "period", EmitDefaultValue = true)]
public int? Period { get; set; }
Property Value
| Type | Description |
|---|---|
| int? | Optional period in seconds for TOTP code expiration |
Secret
The base32 encoded secret provided by the identity provider for the TOTP device.
Declaration
[DataMember(Name = "secret", IsRequired = true, EmitDefaultValue = true)]
public string Secret { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The base32 encoded secret provided by the identity provider for the TOTP device. |
Username
Optional username for the TOTP device
Declaration
[DataMember(Name = "username", EmitDefaultValue = true)]
public string Username { get; set; }
Property Value
| Type | Description |
|---|---|
| string | Optional username for the TOTP device |
Methods
View SourceToJson()
Returns the JSON string presentation of the object
Declaration
public virtual string ToJson()
Returns
| Type | Description |
|---|---|
| string | JSON string presentation of the object |
ToString()
Returns the string presentation of the object
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | String presentation of the object |