OathBuilder

Builder class responsible for producing a Token.

Inheritors

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
protected open var accountName: String
Link copied to clipboard
protected open var algorithm: String
Link copied to clipboard
protected open var digits: Int
Link copied to clipboard
protected open var issuer: String
Link copied to clipboard
protected open var mechanismUID: String
Link copied to clipboard
protected open var secret: String
Link copied to clipboard
protected open var timeAdded: Calendar

Functions

Link copied to clipboard
protected open fun build(): OathMechanism
Produce the described OathMechanism Token.
Link copied to clipboard
abstract fun buildOath(): OathMechanism
Link copied to clipboard
protected abstract fun getThis(): T
Link copied to clipboard
open fun setAccountName(accountName: String): T
Sets the name of the account.
Link copied to clipboard
open fun setAlgorithm(algorithm: String): T
Sets the algorithm used for generating the OTP.
Link copied to clipboard
open fun setDigits(digits: Int): T
Sets the length of the OTP to generate.
Link copied to clipboard
open fun setIssuer(issuer: String): T
Sets the name of the IDP that issued this account.
Link copied to clipboard
open fun setMechanismUID(mechanismUID: String): T
Sets the mechanism unique Id.
Link copied to clipboard
open fun setSecret(secret: String): T
Sets the secret used for generating the OTP.
Link copied to clipboard
open fun setTimeAdded(timeAdded: Calendar): T
Sets the Date and Time this mechanism was stored.