RFR: 8286423: Destroy password protection in the example code in KeyStore [v2]

Weijun Wang weijun at openjdk.java.net
Tue May 10 22:13:48 UTC 2022


On Tue, 10 May 2022 22:03:19 GMT, Xue-Lei Andrew Fan <xuelei at openjdk.org> wrote:

>> src/java.base/share/classes/java/security/KeyStore.java line 165:
>> 
>>> 163:  *        }
>>> 164:  *    } finally {
>>> 165:  *        protParam.destroy();
>> 
>> `KeyStore.ProtectionParameter` does not have a `destroy` method. Only `PasswordProtection` does.
>
> Oops, I tried to check but finally forgot about it.  Thanks!

It's probably better to convert these long example code to snippets, maybe next time.

-------------

PR: https://git.openjdk.java.net/jdk/pull/8623



More information about the security-dev mailing list