public class TOTPAlgorithm extends Object
Modifier and Type | Method and Description |
---|---|
static String |
generateTOTP(byte[] key,
String time,
String returnDigits)
This method generates a TOTP value for the given
set of parameters.
|
static String |
generateTOTP(byte[] key,
String time,
String returnDigits,
String crypto)
This method generates a TOTP value for the given
set of parameters.
|
static String |
generateTOTP256(byte[] key,
String time,
String returnDigits)
This method generates a TOTP value for the given
set of parameters.
|
static String |
generateTOTP512(byte[] key,
String time,
String returnDigits)
This method generates a TOTP value for the given
set of parameters.
|
public static String generateTOTP(byte[] key, String time, String returnDigits)
key
- the shared secret HEX encodedtime
- a value that reflects a timereturnDigits
- number of digits to returntruncationDigits
digitspublic static String generateTOTP256(byte[] key, String time, String returnDigits)
key
- the shared secrettime
- a value that reflects a timereturnDigits
- number of digits to returntruncationDigits
digitspublic static String generateTOTP512(byte[] key, String time, String returnDigits)
key
- the shared secrettime
- a value that reflects a timereturnDigits
- number of digits to returntruncationDigits
digitspublic static String generateTOTP(byte[] key, String time, String returnDigits, String crypto)
key
- the shared secrettime
- a value that reflects a timereturnDigits
- number of digits to returncrypto
- the crypto function to usetruncationDigits
digitsCopyright © 2010–2025 Open Identity Platform Community. All rights reserved.