public interface OtpKeyGenerator
| Modifier and Type | Method and Description | 
|---|---|
static OtpKeyGenerator | 
create()
Creates an instance of OtpKeyGenerator. 
 | 
static OtpKeyGenerator | 
create(String algorithm)
Creates an instance of OtpKeyGenerator. 
 | 
OtpKey | 
generate()
Generate key with default size; 
 | 
OtpKey | 
generate(int keySize)
Generate key 
 | 
String | 
getAlgorithm()  | 
OtpKey generate(int keySize)
keySize - size of keyOtpKeyString getAlgorithm()
static OtpKeyGenerator create()
OtpKeyGenerator.static OtpKeyGenerator create(String algorithm)
algorithm - used hash algorithm.OtpKeyGenerator.Copyright © 2023 Eclipse. All rights reserved.