Summary
Implement a jcmd "VM.security_properties" command to expose security properties at runtime.
Problem
The JDK currently provides no means to expose current system properties at runtime. JCMD offer a VM.system_proporties command to expose system properties but no equivalent command for retrieving security properties. Exposing the processes current security properties should be helpful in diagnosing applications affected by misconfigured or unexpected security settings.
Solution
A new diagnostic command, VM.security_properties, will be added to jcmd. When invoked, it will upcall into a new internal static method in the JDK that serializes all current Java security properties (as held in java.security.Security at runtime) and prints them in key-value format.
Specification
The Diagnostic Command "VM.security_properties" is added to JCMD. There are no new Java APIs.
jcmd <pid> VM.security_properties
- csr of
-
JDK-8364182 Add jcmd VM.security_properties command
-
- Open
-