Search Results for

    Show / Hide Table of Contents

    Class CreateTotpDeviceBase32SecretKeyOptions

    CreateTotpDeviceBase32SecretKeyOptions

    Inheritance
    object
    CreateTotpDeviceBase32SecretKeyOptions
    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 = "CreateTotpDeviceBase32SecretKeyOptions")]
    public class CreateTotpDeviceBase32SecretKeyOptions : IValidatableObject

    Constructors

    View Source

    CreateTotpDeviceBase32SecretKeyOptions()

    Initializes a new instance of the CreateTotpDeviceBase32SecretKeyOptions class.

    Declaration
    [JsonConstructor]
    protected CreateTotpDeviceBase32SecretKeyOptions()
    View Source

    CreateTotpDeviceBase32SecretKeyOptions(string, string, string, string, int?, int?, string)

    Initializes a new instance of the CreateTotpDeviceBase32SecretKeyOptions class.

    Declaration
    public CreateTotpDeviceBase32SecretKeyOptions(string base32SecretKey = null, string name = null, string username = null, string issuer = null, int? digits = 6, int? period = 30, string algorithm = null)
    Parameters
    Type Name Description
    string base32SecretKey

    Base32 secret key for TOTP device as alternative to OTP Auth URI or QR code. (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

    Base32SecretKey

    Base32 secret key for TOTP device as alternative to OTP Auth URI or QR code.

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

    Base32 secret key for TOTP device as alternative to OTP Auth URI or QR code.

    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

    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.