OneTrickPony is a modern Java library that implements support for One-Time Passwords. Built-In support is provided for the HOTP (RFC 4226) and TOTP (RFC 6238) algorithms.
Why do you think that https://github.com/BastiaanJansen/otp-java is a good alternative to OneTrickPony