Package org.forgerock.android.auth
Class HOTPMechanism.HOTPBuilder
- java.lang.Object
-
- org.forgerock.android.auth.OathMechanism.OathBuilder<HOTPMechanism.HOTPBuilder>
-
- org.forgerock.android.auth.HOTPMechanism.HOTPBuilder
-
- Enclosing class:
- HOTPMechanism
public static class HOTPMechanism.HOTPBuilder extends OathMechanism.OathBuilder<HOTPMechanism.HOTPBuilder>
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 HOTPBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected HOTPMechanism.HOTPBuildergetThis()HOTPMechanism.HOTPBuildersetCounter(long counter)Sets the counter for the OTP.-
Methods inherited from class org.forgerock.android.auth.OathMechanism.OathBuilder
build, setAccountName, setAlgorithm, setDigits, setIssuer, setMechanismUID, setSecret, setTimeAdded
-
-
-
-
Method Detail
-
getThis
protected HOTPMechanism.HOTPBuilder getThis()
- Specified by:
getThisin classOathMechanism.OathBuilder<HOTPMechanism.HOTPBuilder>
-
setCounter
public HOTPMechanism.HOTPBuilder setCounter(long counter)
Sets the counter for the OTP. Only useful for HOTPMechanism.- Parameters:
counter- counter as an long number.- Returns:
- The current builder.
-
-