#<Sawyer::Resource:0x00007f0fa1b68b60> v0.4.0 Release Notes

Release Date: 2022-07-31 // over 3 years ago
  • ๐Ÿš€ This release changes the public API a bit and is intended to make java-otp easier to work with in general. Important changes include:

    • Methods that used to throw a (checked) NoSuchAlgorithmException now throw an UncheckedNoSuchAlgorithmException because, most of the time, folks are using algorithms that are guaranteed to be supported by the JVM and there really isn't any corrective action to be taken at runtime
    • TimeBasedOneTimePasswordGenerator no longer extends HmacOneTimePasswordGenerator, which serves to make its public API a little clearer (it no longer exposes counter-based methods for generating one-time passwords)
    • โœ… Unit tests now assume that the JVM supports HMAC-SHA512 and will skip those tests if it does not (rather than reporting failure)
    • ๐Ÿ”€ The various methods for generating one-time passwords are no longer synchronized (but password generators are still thread-safe!), making the concurrency story much simpler: you can use one-time password generators in as many threads as you want, and throughput should scale as expected

    ๐Ÿ‘€ For a complete list of changes, please see the 0.4.0 milestone.


Previous changes from v0.3.1

  • ๐Ÿš€ This release includes a fix for a build error that caused a NoSuchMethodError when running under Java 8 or newer. It contains no new features or functional changes.