Class TotpEnrollmentOptions

java.lang.Object
com.revetsec.totp.TotpEnrollmentOptions

@Immutable public final class TotpEnrollmentOptions extends Object
Application-approved account and display information for initial or replacement enrollment.
Since:
1.0.0
  • Method Details

    • withAccountId

      Starts enrollment options for an application-approved account.
      Parameters:
      accountId - stable nonempty, well-formed account identifier, at most 1024 UTF-8 bytes
      Returns:
      a builder
      Since:
      1.0.0
    • getAccountId

      Returns the application-approved account identifier.
      Returns:
      account identifier
      Since:
      1.0.0
    • getAccountName

      Returns the authenticator display name, which does not establish identity.
      Returns:
      account display name
      Since:
      1.0.0
    • getReplacingFactorId

      Returns the explicitly approved factor generation to replace.
      Returns:
      current factor generation, or empty for initial enrollment
      Since:
      1.0.0
    • toString

      Redacts account and generation information.
      Overrides:
      toString in class Object
      Returns:
      a fixed description
      Since:
      1.0.0