A B C D F G H I N P Q S T U V W 
All Classes All Packages

A

ALGORITHM - Static variable in class com.bastiaanjansen.otp.helpers.URIHelper
 
at(long) - Method in class com.bastiaanjansen.otp.TOTPGenerator
Generate a time-based one-time password for a specific time based on seconds past 1970
at(Instant) - Method in class com.bastiaanjansen.otp.TOTPGenerator
Generate a time-based one-time password for a Java instant
at(Date) - Method in class com.bastiaanjansen.otp.TOTPGenerator
Generate a time-based one-time password for a specific date

B

build() - Method in class com.bastiaanjansen.otp.HOTPGenerator.Builder
Build the generator with specified options
build() - Method in class com.bastiaanjansen.otp.TOTPGenerator.Builder
Build the generator with specified options
Builder(byte[]) - Constructor for class com.bastiaanjansen.otp.HOTPGenerator.Builder
 
Builder(byte[]) - Constructor for class com.bastiaanjansen.otp.TOTPGenerator.Builder
Constructs a TOTPGenerator builder

C

com.bastiaanjansen.otp - package com.bastiaanjansen.otp
 
com.bastiaanjansen.otp.helpers - package com.bastiaanjansen.otp.helpers
 
COUNTER - Static variable in class com.bastiaanjansen.otp.helpers.URIHelper
 
createURI(String, String, String, Map<String, String>) - Static method in class com.bastiaanjansen.otp.helpers.URIHelper
Create a URI based on a scheme, host, path and query items

D

DEFAULT_BITS - Static variable in class com.bastiaanjansen.otp.SecretGenerator
Default amount of bits for secret generation
DIGITS - Static variable in class com.bastiaanjansen.otp.helpers.URIHelper
 
durationUntilNextTimeWindow() - Method in class com.bastiaanjansen.otp.TOTPGenerator
Calculates time until next time window will be reached and a new totp should be generated

F

fromURI(URI) - Static method in class com.bastiaanjansen.otp.HOTPGenerator
Build a TOTPGenerator from an OTPAuth URI
fromURI(URI) - Static method in class com.bastiaanjansen.otp.TOTPGenerator
Build a TOTPGenerator from an OTPAuth URI

G

generate() - Static method in class com.bastiaanjansen.otp.SecretGenerator
Generate an OTP base32 secret with default amount of bits
generate(int) - Static method in class com.bastiaanjansen.otp.SecretGenerator
Generate an OTP base32 secret
generate(long) - Method in class com.bastiaanjansen.otp.HOTPGenerator
Generate a code
getAlgorithm() - Method in class com.bastiaanjansen.otp.HOTPGenerator
 
getAlgorithm() - Method in class com.bastiaanjansen.otp.TOTPGenerator
 
getClock() - Method in class com.bastiaanjansen.otp.TOTPGenerator
 
getHMACName() - Method in enum com.bastiaanjansen.otp.HMACAlgorithm
 
getPasswordLength() - Method in class com.bastiaanjansen.otp.HOTPGenerator
 
getPasswordLength() - Method in class com.bastiaanjansen.otp.TOTPGenerator
 
getPeriod() - Method in class com.bastiaanjansen.otp.TOTPGenerator
 
getURI(int, String) - Method in class com.bastiaanjansen.otp.HOTPGenerator
Create an OTPAuth URI for easy user on-boarding with only an issuer
getURI(int, String, String) - Method in class com.bastiaanjansen.otp.HOTPGenerator
Create an OTPAuth URI for easy user on-boarding with an issuer and account name
getURI(String) - Method in class com.bastiaanjansen.otp.TOTPGenerator
Create a OTPAuth URI for easy on-boarding with only an issuer
getURI(String, String) - Method in class com.bastiaanjansen.otp.TOTPGenerator
Create a OTPAuth URI for easy user on-boarding with an issuer and account name

H

HMACAlgorithm - Enum in com.bastiaanjansen.otp
HMAC algorithm enum
HOTPGenerator - Class in com.bastiaanjansen.otp
Generates counter-based one-time passwords
HOTPGenerator.Builder - Class in com.bastiaanjansen.otp
 

I

ISSUER - Static variable in class com.bastiaanjansen.otp.helpers.URIHelper
 

N

now() - Method in class com.bastiaanjansen.otp.TOTPGenerator
Generate a time-based one-time password for current time interval instant

P

PERIOD - Static variable in class com.bastiaanjansen.otp.helpers.URIHelper
 

Q

queryItems(URI) - Static method in class com.bastiaanjansen.otp.helpers.URIHelper
Get a map of query items from URI

S

SECRET - Static variable in class com.bastiaanjansen.otp.helpers.URIHelper
 
SecretGenerator - Class in com.bastiaanjansen.otp
A secret generator to generate OTP secrets
SHA1 - com.bastiaanjansen.otp.HMACAlgorithm
HMAC hashing algorithm options
SHA256 - com.bastiaanjansen.otp.HMACAlgorithm
 
SHA512 - com.bastiaanjansen.otp.HMACAlgorithm
 

T

TOTPGenerator - Class in com.bastiaanjansen.otp
Generates time-based one-time passwords
TOTPGenerator.Builder - Class in com.bastiaanjansen.otp
 

U

URIHelper - Class in com.bastiaanjansen.otp.helpers
A URI utility class with helper methods

V

valueOf(String) - Static method in enum com.bastiaanjansen.otp.HMACAlgorithm
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.bastiaanjansen.otp.HMACAlgorithm
Returns an array containing the constants of this enum type, in the order they are declared.
verify(String) - Method in class com.bastiaanjansen.otp.TOTPGenerator
Checks whether a code is valid for a specific counter
verify(String, int) - Method in class com.bastiaanjansen.otp.TOTPGenerator
Checks whether a code is valid for a specific counter taking a delay window into account
verify(String, long) - Method in class com.bastiaanjansen.otp.HOTPGenerator
Checks whether a code is valid for a specific counter with a delay window of 0
verify(String, long, int) - Method in class com.bastiaanjansen.otp.HOTPGenerator
Checks whether a code is valid for a specific counter taking a delay window into account

W

withAlgorithm(HMACAlgorithm) - Method in class com.bastiaanjansen.otp.HOTPGenerator.Builder
Change hashing algorithm
withClock(Clock) - Method in class com.bastiaanjansen.otp.TOTPGenerator.Builder
 
withDefaultValues(byte[]) - Static method in class com.bastiaanjansen.otp.HOTPGenerator
Create a com.bastiaanjansen.otp.HOTPGenerator with default values
withDefaultValues(byte[]) - Static method in class com.bastiaanjansen.otp.TOTPGenerator
 
withHOTPGenerator(Consumer<HOTPGenerator.Builder>) - Method in class com.bastiaanjansen.otp.TOTPGenerator.Builder
 
withPasswordLength(int) - Method in class com.bastiaanjansen.otp.HOTPGenerator.Builder
 
withPeriod(Duration) - Method in class com.bastiaanjansen.otp.TOTPGenerator.Builder
Change period
A B C D F G H I N P Q S T U V W 
All Classes All Packages