Skip to content

Commit 4f035ae

Browse files
Document key spec null contracts (#557)
Refs #228 Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
1 parent e3a7557 commit 4f035ae

4 files changed

Lines changed: 4 additions & 0 deletions

File tree

docs/xml/Java.Security.Spec/EdECPrivateKeySpec.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@
9292
<param name="params">the algorithm parameters.</param>
9393
<param name="bytes">the key as a byte array. This array is copied
9494
to protect against subsequent modification.</param>
95+
<exception cref="T:Java.Lang.NullPointerException">if <c>params</c> or <c>bytes</c> is null.</exception>
9596
<summary>Construct a private key spec using the supplied parameters and
9697
bit string.</summary>
9798
<remarks>

docs/xml/Java.Security.Spec/EdECPublicKeySpec.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@
9090
<Docs>
9191
<param name="params">the algorithm parameters.</param>
9292
<param name="point">the point representing the public key.</param>
93+
<exception cref="T:Java.Lang.NullPointerException">if <c>params</c> or <c>point</c> is null.</exception>
9394
<summary>Construct a public key spec using the supplied parameters and
9495
point.</summary>
9596
<remarks>

docs/xml/Java.Security.Spec/XECPrivateKeySpec.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@
9191
<param name="params">the algorithm parameters</param>
9292
<param name="scalar">the unpruned encoded scalar value. This array is copied
9393
to protect against subsequent modification.</param>
94+
<exception cref="T:Java.Lang.NullPointerException">if <c>params</c> or <c>scalar</c> is null.</exception>
9495
<summary>Construct a private key spec using the supplied parameters and
9596
encoded scalar value.</summary>
9697
<remarks>

docs/xml/Java.Security.Spec/XECPublicKeySpec.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@
9191
<param name="params">the algorithm parameters</param>
9292
<param name="u">the u-coordinate of the point, represented using a BigInteger
9393
which may hold any value</param>
94+
<exception cref="T:Java.Lang.NullPointerException">if <c>params</c> or <c>u</c> is null.</exception>
9495
<summary>Construct a public key spec using the supplied parameters and
9596
u coordinate.</summary>
9697
<remarks>

0 commit comments

Comments
 (0)