TotpEnrollment

public final class TotpEnrollment : EnrollmentProtocol

The enrollment for Time based one-time password.

  • Initializes a new TotpEnrollment.

    Declaration

    Swift

    public required init()
  • The name of the enrollment.

    Declaration

    Swift

    public var name: String { get }
  • The identifier of the enrollmment.

    Remark

    The identifier value is: urn:ibm:security:authentication:asf:mechanism:totp.

    Declaration

    Swift

    public var identifier: String { get }
  • The type of the enrollment challenge.

    Declaration

    Swift

    public var type: String { get }
  • The type of HTTP method required for enrollment.

    Declaration

    Swift

    public var method: String { get }
  • Serialize the object to a JSON string.

    Declaration

    Swift

    public func serializeToJson() -> String

    Return Value

    Serialized TotpEnrollment to a JSON String.