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

Xue-Lei Andrew Fan xuelei at openjdk.java.net
Fri Apr 29 04:31:41 UTC 2022


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

> What kind of additional sentence do you have in mind?

It may be fine to put it into the state for 'null" returned value.  For example:

The returned parameters may be the same that were used to initialize
this signature, or may contain additional default or random parameter
values used by the underlying signature implementation, **or null if the
underlying signature implementation does not support returning the
parameters as {@code AlgorithmParameters}.**

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

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



More information about the security-dev mailing list