RFR: 8241306: Add SignatureMethodParameterSpec subclass for RSASSA-PSS params [v2]
Sean Mullan
mullan at openjdk.java.net
Tue Mar 30 18:31:22 UTC 2021
On Tue, 30 Mar 2021 16:34:45 GMT, Weijun Wang <weijun at openjdk.org> wrote:
>> src/java.xml.crypto/share/classes/javax/xml/crypto/dsig/spec/RSAPSSParameterSpec.java line 89:
>>
>>> 87: *
>>> 88: * @param spec the input {@code PSSParameterSpec} to be encapsulated
>>> 89: */
>>
>> Should this throw NPE if spec is null?
>
> I currently throw one. Do I need to mention it in the spec?
Yes, unless it is specified more generally somewhere else in the API. (Ex: "all methods that take parameters with a `null` value throw `NullPointerException` unless otherwise specified").
-------------
PR: https://git.openjdk.java.net/jdk/pull/3181
More information about the security-dev
mailing list