Class TotpEnrollmentOptions
java.lang.Object
com.revetsec.totp.TotpEnrollmentOptions
Application-approved account and display information for initial or replacement enrollment.
- Since:
- 1.0.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classOne caller-thread enrollment builder. -
Method Summary
Modifier and TypeMethodDescriptionReturns the application-approved account identifier.Returns the authenticator display name, which does not establish identity.Returns the explicitly approved factor generation to replace.toString()Redacts account and generation information.withAccountId(@NonNull String accountId) Starts enrollment options for an application-approved account.
-
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
-