Skip to content

Commit c59bbea

Browse files
franferraxmartinuy
andcommitted
Address review comment 2
Create a jdk.security.providers.filter @implNote for: • java.security.Security::getProviders(String) • java.security.Security::getProviders(java.util.Map<String,String>) Co-authored-by: Francisco Ferrari Bihurriet <[email protected]> Co-authored-by: Martin Balao <[email protected]>
1 parent 59d8228 commit c59bbea

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/java.base/share/classes/java/security/Security.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -600,6 +600,14 @@ public static Provider getProvider(String name) {
600600
* for information about standard cryptographic service names, standard
601601
* algorithm names and standard attribute names.
602602
*
603+
* @implNote
604+
* The {@code jdk.security.providers.filter}
605+
* {@link System#getProperty(String) System} and
606+
* {@link Security#getProperty(String) Security} properties determine
607+
* which {@linkplain java.security.Provider.Service services} are
608+
* enabled. A service that is not enabled by the providers filter
609+
* will not match the selection criteria for its provider.
610+
*
603611
* @param filter the criterion for selecting
604612
* providers. The filter is case-insensitive.
605613
*
@@ -678,6 +686,14 @@ public static Provider[] getProviders(String filter) {
678686
* for information about standard cryptographic service names, standard
679687
* algorithm names and standard attribute names.
680688
*
689+
* @implNote
690+
* The {@code jdk.security.providers.filter}
691+
* {@link System#getProperty(String) System} and
692+
* {@link Security#getProperty(String) Security} properties determine
693+
* which {@linkplain java.security.Provider.Service services} are
694+
* enabled. A service that is not enabled by the providers filter
695+
* will not match the selection criteria for its provider.
696+
*
681697
* @param filter the criteria for selecting
682698
* providers. The filter is case-insensitive.
683699
*

0 commit comments

Comments
 (0)