Package com.bastiaanjansen.otp
Class HOTPGenerator.Builder
- java.lang.Object
-
- com.bastiaanjansen.otp.HOTPGenerator.Builder
-
- Enclosing class:
- HOTPGenerator
public static final class HOTPGenerator.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder(byte[] secret)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HOTPGeneratorbuild()HOTPGenerator.BuilderwithAlgorithm(HMACAlgorithm algorithm)HOTPGenerator.BuilderwithPasswordLength(int passwordLength)
-
-
-
Method Detail
-
withPasswordLength
public HOTPGenerator.Builder withPasswordLength(int passwordLength)
-
withAlgorithm
public HOTPGenerator.Builder withAlgorithm(HMACAlgorithm algorithm)
-
build
public HOTPGenerator build()
-
-