Search Results for

    Show / Hide Table of Contents

    Class CreateTotpDeviceCustomOptions

    CreateTotpDeviceCustomOptions

    Inheritance
    object
    CreateTotpDeviceCustomOptions
    Implements
    IValidatableObject
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: mailslurp.Model
    Assembly: mailslurp.dll
    Syntax
    [DataContract(Name = "CreateTotpDeviceCustomOptions")]
    public class CreateTotpDeviceCustomOptions : IValidatableObject

    Constructors

    View Source

    CreateTotpDeviceCustomOptions()

    Initializes a new instance of the CreateTotpDeviceCustomOptions class.

    Declaration
    [JsonConstructor]
    protected CreateTotpDeviceCustomOptions()
    View Source

    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 Source

    Algorithm

    Optional algorithm override

    Declaration
    [DataMember(Name = "algorithm", EmitDefaultValue = true)]
    public string Algorithm { get; set; }
    Property Value
    Type Description
    string

    Optional algorithm override

    View Source

    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

    View Source

    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

    View Source

    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

    View Source

    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

    View Source

    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.

    View Source

    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 Source

    ToJson()

    Returns the JSON string presentation of the object

    Declaration
    public virtual string ToJson()
    Returns
    Type Description
    string

    JSON string presentation of the object

    View Source

    ToString()

    Returns the string presentation of the object

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    String presentation of the object

    Overrides
    object.ToString()

    Implements

    IValidatableObject
    • View Source
    In this article
    Back to top See MailSlurp website for more information.