Skip to content

Commit

Permalink
Document list of reserved keys in java.security.Security::getProperty…
Browse files Browse the repository at this point in the history
…/setProperty APIs.

Co-authored-by: Martin Balao <[email protected]>
Co-authored-by: Francisco Ferrari Bihurriet <[email protected]>
  • Loading branch information
martinuy and franferrax committed Aug 21, 2024
1 parent 580d34a commit 3b6f99c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/java.base/share/classes/java/security/Security.java
Original file line number Diff line number Diff line change
Expand Up @@ -865,7 +865,8 @@ static Object[] getImpl(String algorithm, String type, Provider provider,
* access to retrieve the specified security property value
* @throws NullPointerException if key is {@code null}
* @throws IllegalArgumentException if key is reserved and cannot be
* used as a Security property name.
* used as a Security property name. Reserved keys are:
* "include".
*
* @see #setProperty
* @see java.security.SecurityPermission
Expand Down Expand Up @@ -898,7 +899,8 @@ public static String getProperty(String key) {
* denies access to set the specified security property value
* @throws NullPointerException if key or datum is {@code null}
* @throws IllegalArgumentException if key is reserved and cannot be
* used as a Security property name.
* used as a Security property name. Reserved keys are:
* "include".
*
* @see #getProperty
* @see java.security.SecurityPermission
Expand Down

0 comments on commit 3b6f99c

Please sign in to comment.