Package io.vertx.mutiny.ext.auth.otp
Class OtpKeyGenerator
java.lang.Object
io.vertx.mutiny.ext.auth.otp.OtpKeyGenerator
- All Implemented Interfaces:
MutinyDelegate
Otp key generator.
NOTE: This class has been automatically generated from the original non Mutiny-ified interface.
- Author:
- Dmitry Novikov
- See Also:
-
OtpKeyGenerator
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionOtpKeyGenerator(io.vertx.ext.auth.otp.OtpKeyGenerator delegate) Create a new instance ofOtpKeyGeneratordelegating to the given (non-null) instance ofOtpKeyGenerator.OtpKeyGenerator(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionstatic OtpKeyGeneratorcreate()Creates an instance of OtpKeyGenerator.static OtpKeyGeneratorCreates an instance of OtpKeyGenerator.booleanio.vertx.ext.auth.otp.OtpKeygenerate()Generate key with default size;io.vertx.ext.auth.otp.OtpKeygenerate(int keySize) Generate keyio.vertx.ext.auth.otp.OtpKeyGeneratorGet the delegate instance.inthashCode()static OtpKeyGeneratornewInstance(io.vertx.ext.auth.otp.OtpKeyGenerator delegate) Creates a new instance of theOtpKeyGenerator.toString()
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
OtpKeyGenerator
public OtpKeyGenerator(io.vertx.ext.auth.otp.OtpKeyGenerator delegate) Create a new instance ofOtpKeyGeneratordelegating to the given (non-null) instance ofOtpKeyGenerator. -
OtpKeyGenerator
-
-
Method Details
-
getDelegate
public io.vertx.ext.auth.otp.OtpKeyGenerator getDelegate()Get the delegate instance.This method returns the instance on which this shim is delegating the calls. And so, give you access to the bare API.
- Specified by:
getDelegatein interfaceMutinyDelegate- Returns:
- the delegate instance
-
generate
public io.vertx.ext.auth.otp.OtpKey generate()Generate key with default size;- Returns:
OtpKey
-
generate
public io.vertx.ext.auth.otp.OtpKey generate(int keySize) Generate key- Parameters:
keySize- size of key- Returns:
OtpKey
-
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.
-
newInstance
Creates a new instance of theOtpKeyGenerator. -
hashCode
public int hashCode() -
equals
-
toString
-