A pull request was submitted for review.
Branch: master
URL: https://git.openjdk.org/jdk/pull/25632
Date: 2025-06-04 03:10:29 +0000
04-06-2025
The cleaner in PBEKey class will zero out the key bytes when destroy() is called. Thus the current impl returns an all-0 byte[] when getEncoded() is called after the key object is destroyed. However, according to the javadoc of javax.security.auth.Destroyable interface, getEncoded() should throw IllegalStateException after the key bytes are destroyed.