Package com.bastiaanjansen.otp
Class TOTPGenerator.Builder
- java.lang.Object
-
- com.bastiaanjansen.otp.TOTPGenerator.Builder
-
- Enclosing class:
- TOTPGenerator
public static final class TOTPGenerator.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder(byte[] secret)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TOTPGeneratorbuild()TOTPGenerator.BuilderwithClock(Clock clock)TOTPGenerator.BuilderwithHOTPGenerator(Consumer<HOTPGenerator.Builder> builder)TOTPGenerator.BuilderwithPeriod(Duration period)
-
-
-
Method Detail
-
withHOTPGenerator
public TOTPGenerator.Builder withHOTPGenerator(Consumer<HOTPGenerator.Builder> builder)
-
withClock
public TOTPGenerator.Builder withClock(Clock clock)
-
withPeriod
public TOTPGenerator.Builder withPeriod(Duration period)
-
build
public TOTPGenerator build()
-
-