RFR: 8253176: Signature.getParameters should specify that it can throw UnsupportedOperationException [v2]

Weijun Wang weijun at openjdk.java.net
Thu Apr 28 23:31:53 UTC 2022


On Thu, 28 Apr 2022 23:22:30 GMT, Valerie Peng <valeriep at openjdk.org> wrote:

>> I suggest the last sentence to be "null is returned if the required parameters were not supplied **or** the underlying signature implementation cannot generate the parameter values." I used "or" because for EdDSA parameters are supplied but the impl cannot generate parameter values.
>
> The impl does not need to generate parameter values, but rather cannot convert the supplied parameter values into AlgorithmParameter objects. By parameter values, I mean the components of the parameters.

Then what does "cannot generate parameter values" mean? Any example?

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

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



More information about the security-dev mailing list