Package io.vertx.rxjava3.ext.auth.otp
Class OtpKeyGenerator
- java.lang.Object
-
- io.vertx.rxjava3.ext.auth.otp.OtpKeyGenerator
-
-
Field Summary
Fields Modifier and Type Field Description static io.vertx.lang.rx.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 OtpKeyGenerator
create()
Creates an instance of OtpKeyGenerator.static OtpKeyGenerator
create(String algorithm)
Creates an instance of OtpKeyGenerator.boolean
equals(Object o)
OtpKey
generate()
Generate key with default size;OtpKey
generate(int keySize)
Generate keyString
getAlgorithm()
OtpKeyGenerator
getDelegate()
int
hashCode()
static OtpKeyGenerator
newInstance(OtpKeyGenerator arg)
String
toString()
-
-
-
Field Detail
-
__TYPE_ARG
public static final io.vertx.lang.rx.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)
-
-