Uses of Class
io.github.pratiyush.totp.internal.TOTPClock
Packages that use TOTPClock
Package
Description
Production-Ready TOTP Library - Null Safety Declaration.
Internal implementation classes for the TOTP library.
-
Uses of TOTPClock in io.github.pratiyush.totp
Methods in io.github.pratiyush.totp that return TOTPClockMethods in io.github.pratiyush.totp with parameters of type TOTPClockModifier and TypeMethodDescriptionSets the clock for time-based operations. -
Uses of TOTPClock in io.github.pratiyush.totp.internal
Methods in io.github.pratiyush.totp.internal that return TOTPClockModifier and TypeMethodDescriptionstatic TOTPClockCreates a clock fixed at the specified instant.static TOTPClockCreates a clock from a Java Clock instance.static TOTPClockTOTPClock.systemUTC()Creates a clock using the system UTC time.Methods in io.github.pratiyush.totp.internal with parameters of type TOTPClockModifier and TypeMethodDescriptionstatic StringTOTPEngine.generateCode(byte[] secret, TOTPConfig config, TOTPClock clock) Generates a TOTP code for the current time.static booleanTOTPEngine.verifyCode(byte[] secret, String code, TOTPConfig config, TOTPClock clock) Verifies a TOTP code using constant-time comparison.static IntegerTOTPEngine.verifyCodeWithOffset(byte[] secret, String code, TOTPConfig config, TOTPClock clock) Verifies a code and returns the matching counter offset if valid.