Package com.bastiaanjansen.otp
Class TOTP.Builder
- java.lang.Object
-
- com.bastiaanjansen.otp.TOTP.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder(byte[] secret)Constructs a TOTPGenerator builder
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TOTPbuild()Build the generator with specified optionsprotected TOTP.BuildergetBuilder()TOTP.BuilderwithPeriod(Duration period)Change period
-
-
-
Method Detail
-
withPeriod
public TOTP.Builder withPeriod(Duration period)
Change period- Parameters:
period- time interval between new codes- Returns:
- builder
-
build
public TOTP build()
Build the generator with specified options- Returns:
- TOTP
-
getBuilder
protected TOTP.Builder getBuilder()
-
-