Class TotpService
java.lang.Object
org.bardframework.flow.form.field.input.otp.time.OtpServiceAbstract
org.bardframework.flow.form.field.input.otp.time.TotpService
- All Implemented Interfaces:
OtpGenerator<Void>
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.bardframework.flow.form.field.input.otp.time.OtpServiceAbstract
generate, generateSecret, getAlgorithm, getHmacAlgorithm, getHmacProvider, getLength, getRngAlgorithm, getRngProvider, getSecretSize, hmac, isNumber, setAlgorithm, setHmacAlgorithm, setHmacProvider, setLength, setRngAlgorithm, setRngProvider, setSecretSize
-
Constructor Details
-
TotpService
public TotpService()
-
-
Method Details
-
getUri
-
generate
- Specified by:
generatein classOtpServiceAbstract
-
verify
- Specified by:
verifyin classOtpServiceAbstract- Throws:
GeneralSecurityException
-
getWindow
public int getWindow() -
setWindow
public void setWindow(int window) -
getPeriodSeconds
public int getPeriodSeconds() -
setPeriodSeconds
public void setPeriodSeconds(int periodSeconds)
-