Package io.vertx.rxjava.ext.auth.otp
Class OtpKeyGenerator
- java.lang.Object
-
- io.vertx.rxjava.ext.auth.otp.OtpKeyGenerator
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<OtpKeyGenerator>__TYPE_ARG
-
Constructor Summary
Constructors Constructor Description OtpKeyGenerator(OtpKeyGenerator delegate)OtpKeyGenerator(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OtpKeyGeneratorcreate()Creates an instance of OtpKeyGenerator.static OtpKeyGeneratorcreate(String algorithm)Creates an instance of OtpKeyGenerator.booleanequals(Object o)OtpKeygenerate()Generate key with default size;OtpKeygenerate(int keySize)Generate keyStringgetAlgorithm()OtpKeyGeneratorgetDelegate()inthashCode()static OtpKeyGeneratornewInstance(OtpKeyGenerator arg)StringtoString()
-
-
-
Field Detail
-
__TYPE_ARG
public static final TypeArg<OtpKeyGenerator> __TYPE_ARG
-
-
Constructor Detail
-
OtpKeyGenerator
public OtpKeyGenerator(OtpKeyGenerator delegate)
-
OtpKeyGenerator
public OtpKeyGenerator(Object delegate)
-
-
Method Detail
-
getDelegate
public OtpKeyGenerator getDelegate()
-
generate
public OtpKey generate(int keySize)
Generate key- Parameters:
keySize- size of key- Returns:
OtpKey
-
getAlgorithm
public String getAlgorithm()
-
create
public static OtpKeyGenerator create()
Creates an instance of OtpKeyGenerator.- Returns:
- the created instance of
OtpKeyGenerator.
-
create
public static OtpKeyGenerator create(String algorithm)
Creates an instance of OtpKeyGenerator.- Parameters:
algorithm- used hash algorithm.- Returns:
- the created instance of
OtpKeyGenerator.
-
newInstance
public static OtpKeyGenerator newInstance(OtpKeyGenerator arg)
-
-