Interface OtpKeyGenerator
public interface OtpKeyGenerator
Otp key generator.
- Author:
- Dmitry Novikov
-
Method Summary
Modifier and TypeMethodDescriptionstatic OtpKeyGeneratorcreate()Creates an instance of OtpKeyGenerator.static OtpKeyGeneratorCreates an instance of OtpKeyGenerator.generate()Generate key with default size;generate(int keySize) Generate key
-
Method Details
-
generate
-
generate
-
getAlgorithm
String getAlgorithm() -
create
Creates an instance of OtpKeyGenerator.- Returns:
- the created instance of
OtpKeyGenerator.
-
create
Creates an instance of OtpKeyGenerator.- Parameters:
algorithm- used hash algorithm.- Returns:
- the created instance of
OtpKeyGenerator.
-