< prev index next >
src/java.base/share/classes/sun/security/util/AbstractAlgorithmConstraints.java
Print this page
@@ -23,10 +23,13 @@
* questions.
*/
package sun.security.util;
+import jdk.internal.event.EventHelper;
+import jdk.internal.event.SecurityPropertyEvent;
+
import java.security.AccessController;
import java.security.AlgorithmConstraints;
import java.security.PrivilegedAction;
import java.security.Security;
import java.util.Set;
@@ -68,10 +71,17 @@
// map the disabled algorithms
if (algorithmsInProperty == null) {
algorithmsInProperty = new String[0];
}
+
+ SecurityPropertyEvent spe = new SecurityPropertyEvent();
+ if (spe.isEnabled() || EventHelper.isLoggingSecurity()) {
+ EventHelper.commitSecurityPropertyEvent(spe, propertyName, property);
+ spe.commit();
+ }
+
return algorithmsInProperty;
}
static boolean checkAlgorithm(String[] algorithms, String algorithm,
AlgorithmDecomposer decomposer) {
< prev index next >