Package io.vertx.ext.auth.otp
Interface OtpKeyGenerator
-
public interface OtpKeyGeneratorOtp key generator.- Author:
- Dmitry Novikov
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static OtpKeyGeneratorcreate()Creates an instance of OtpKeyGenerator.static OtpKeyGeneratorcreate(String algorithm)Creates an instance of OtpKeyGenerator.OtpKeygenerate()Generate key with default size;OtpKeygenerate(int keySize)Generate keyStringgetAlgorithm()
-
-
-
Method Detail
-
generate
OtpKey generate(int keySize)
Generate key- Parameters:
keySize- size of key- Returns:
OtpKey
-
getAlgorithm
String getAlgorithm()
-
create
static OtpKeyGenerator create()
Creates an instance of OtpKeyGenerator.- Returns:
- the created instance of
OtpKeyGenerator.
-
create
static OtpKeyGenerator create(String algorithm)
Creates an instance of OtpKeyGenerator.- Parameters:
algorithm- used hash algorithm.- Returns:
- the created instance of
OtpKeyGenerator.
-
-