RFR: 8209038: Clarify the javadoc of Cipher.getParameters() [v2]

Valerie Peng valeriep at openjdk.java.net
Tue Apr 26 18:30:08 UTC 2022


On Mon, 25 Apr 2022 18:14:07 GMT, Sean Mullan <mullan at openjdk.org> wrote:

>> As for the 2nd sentence, it boils down whether we requires provider to generate default parameters and return it when parameter is required. Existing javadoc states that null is returned when parameter is not required. Given Cipher covers many algorithms, if a provider does not want to generate a default parameter when parameter is required, it can't return null when getParameters() is called.
>
>> I can do the Signature update through https://bugs.openjdk.java.net/browse/JDK-8253176 which I have targeted to fix in 19 also.
> 
> Ok.

I have filed the PR for the Signature at: https://github.com/openjdk/jdk/pull/8396
Best to get it done along with this one.

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

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



More information about the security-dev mailing list