B C G H O R T U V 
All Classes All Packages

B

BYTES - Static variable in class com.amdelamar.jotp.OTP
 

C

checksum(long, int) - Static method in class com.amdelamar.jotp.type.HOTP
Calculates the checksum using the credit card algorithm.
com.amdelamar.jotp - package com.amdelamar.jotp
 
com.amdelamar.jotp.type - package com.amdelamar.jotp.type
 
com.amdelamar.jotp.util - package com.amdelamar.jotp.util
 
create(String, String, int) - Method in class com.amdelamar.jotp.type.HOTP
Create a one-time-password with the given key, base, and digits.
create(String, String, int) - Method in interface com.amdelamar.jotp.type.OTPInterface
 
create(String, String, int) - Method in class com.amdelamar.jotp.type.TOTP
Create a one-time-password with the given key, base, and digits.
create(String, String, int, Type) - Static method in class com.amdelamar.jotp.OTP
Create a one-time-password with the given key, base, digits, and OTP.Type.

G

generateHotp(byte[], long, int, boolean, int, String) - Static method in class com.amdelamar.jotp.type.HOTP
This method generates an OTP value for the given set of parameters.
generateTotp(String, String, int, String) - Static method in class com.amdelamar.jotp.type.TOTP
Generates a TOTP value for the given set of parameters.
getLabel() - Method in class com.amdelamar.jotp.type.HOTP
 
getLabel() - Method in interface com.amdelamar.jotp.type.OTPInterface
 
getLabel() - Method in class com.amdelamar.jotp.type.TOTP
 
getURL(String, int, Type, String, String) - Static method in class com.amdelamar.jotp.OTP
Gets the "otpauth://" URL for adding to 2FA compatible devices/apps.

H

hexStringToBytes(String) - Static method in class com.amdelamar.jotp.type.TOTP
Converts a Hex based string to byte[]
hmac(String, byte[], byte[]) - Static method in class com.amdelamar.jotp.util.Utils
Uses the JCE to provide the cryptographic hash.
HOTP - Class in com.amdelamar.jotp.type
Hmac based OTP class implements OTPInterface
HOTP - com.amdelamar.jotp.type.Type
Hmac-based Type constant
HOTP() - Constructor for class com.amdelamar.jotp.type.HOTP
 

O

OTP - Class in com.amdelamar.jotp
OTP (One Time Password) utility in Java.
OTPInterface - Interface in com.amdelamar.jotp.type
OTP (One Time Password) generator interface

R

random(String, int) - Static method in class com.amdelamar.jotp.OTP
Deprecated.
randomBase32(int) - Static method in class com.amdelamar.jotp.OTP
Generate a random string in Base32, with the specified length.

T

timeInHex() - Static method in class com.amdelamar.jotp.OTP
Deprecated.
timeInHex(long) - Static method in class com.amdelamar.jotp.OTP
A quick method to get a Time rounded down to the nearest 30 seconds.
timeInHex(long, int) - Static method in class com.amdelamar.jotp.OTP
A method to get a Unix Time converted to Hexadecimal using a token period.
TOTP - Class in com.amdelamar.jotp.type
Time based OTP class implements OTPInterface
TOTP - com.amdelamar.jotp.type.Type
Time-based Type constant
TOTP() - Constructor for class com.amdelamar.jotp.type.TOTP
 
Type - Enum in com.amdelamar.jotp.type
OTP Type enumeration constant.

U

Utils - Class in com.amdelamar.jotp.util
 

V

validateParameters(String, String, int, Type) - Static method in class com.amdelamar.jotp.OTP
Validate the parameters used for generating one-time passwords.
valueOf(String) - Static method in enum com.amdelamar.jotp.type.Type
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.amdelamar.jotp.type.Type
Returns an array containing the constants of this enum type, in the order they are declared.
verify(String, String, String, int, Type) - Static method in class com.amdelamar.jotp.OTP
Returns true if the code is valid for the Hmac-based or Time-based OTP of the secret.
B C G H O R T U V 
All Classes All Packages