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

Xue-Lei Andrew Fan xuelei at openjdk.java.net
Tue May 10 22:07:48 UTC 2022


On Tue, 10 May 2022 13:36:19 GMT, Weijun Wang <weijun at openjdk.org> wrote:

>> Xue-Lei Andrew Fan has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Use PasswordProtection
>
> 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!

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

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



More information about the security-dev mailing list