Package org.forgerock.android.auth
Class TOTPMechanism.TOTPBuilder
- java.lang.Object
-
- org.forgerock.android.auth.OathMechanism.OathBuilder<TOTPMechanism.TOTPBuilder>
-
- org.forgerock.android.auth.TOTPMechanism.TOTPBuilder
-
- Enclosing class:
- TOTPMechanism
public static class TOTPMechanism.TOTPBuilder extends OathMechanism.OathBuilder<TOTPMechanism.TOTPBuilder>
Builder class responsible for producing a TOTPMechanism Token.
-
-
Field Summary
-
Fields inherited from class org.forgerock.android.auth.OathMechanism.OathBuilder
accountName, algorithm, digits, issuer, mechanismUID, secret, timeAdded
-
-
Constructor Summary
Constructors Constructor Description TOTPBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TOTPMechanism.TOTPBuildergetThis()TOTPMechanism.TOTPBuildersetPeriod(int period)Sets the frequency with which the OTP changes.-
Methods inherited from class org.forgerock.android.auth.OathMechanism.OathBuilder
build, setAccountName, setAlgorithm, setDigits, setIssuer, setMechanismUID, setSecret, setTimeAdded
-
-
-
-
Method Detail
-
getThis
protected TOTPMechanism.TOTPBuilder getThis()
- Specified by:
getThisin classOathMechanism.OathBuilder<TOTPMechanism.TOTPBuilder>
-
setPeriod
public TOTPMechanism.TOTPBuilder setPeriod(int period)
Sets the frequency with which the OTP changes.- Parameters:
period- Non null period in seconds.- Returns:
- The current builder.
-
-