Definition at line 20 of file TwoFactorUtility.java.
◆ decryptKey()
static String org.openkilda.security.TwoFactorUtility.decryptKey |
( |
final String |
secretKey | ) |
throws Exception |
|
static |
◆ generateEncryptedKey()
static String org.openkilda.security.TwoFactorUtility.generateEncryptedKey |
( |
final String |
base32String | ) |
|
|
static |
◆ generateTOTP() [1/2]
static String org.openkilda.security.TwoFactorUtility.generateTOTP |
( |
final String |
key, |
|
|
final String |
time, |
|
|
final String |
returnDigits |
|
) |
| |
|
static |
◆ generateTOTP() [2/2]
static String org.openkilda.security.TwoFactorUtility.generateTOTP |
( |
final String |
key, |
|
|
final String |
time, |
|
|
final String |
returnDigits, |
|
|
final String |
crypto |
|
) |
| |
|
static |
This method generates a TOTP value for the given set of parameters.
- Parameters
-
key | : the shared secret, HEX encoded |
time | : a value that reflects a time |
returnDigits | : number of digits to return |
crypto | : the crypto function to use |
- Returns
- : a numeric String in base 10 that includes truncationDigits digits
Definition at line 121 of file TwoFactorUtility.java.
◆ getBase32EncryptedKey()
static String org.openkilda.security.TwoFactorUtility.getBase32EncryptedKey |
( |
| ) |
|
|
static |
◆ validateOtp()
static boolean org.openkilda.security.TwoFactorUtility.validateOtp |
( |
final String |
otp, |
|
|
final String |
decryptKey |
|
) |
| |
|
static |
The documentation for this class was generated from the following file:
- /Users/kevin/Desktop/Kilda/open-kilda-develop/services/src/openkilda-gui/src/main/java/org/openkilda/security/TwoFactorUtility.java