| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static void | checkSecurityManager()
Check for the presence of a security manager (from an older JDK) and throw UnsupportedOperationException if enabled. |
| SecurityUtil | back to summary |
|---|---|
| private SecurityUtil() | |
| checkSecurityManager | back to summary |
|---|---|
| public static void checkSecurityManager() Check for the presence of a security manager (from an older JDK) and throw UnsupportedOperationException if enabled. Use reflection to avoid a dependency on an API that is deprecated for removal. This method does nothing if the security manager is not enabled or if System::getSecurityManager cannot be invoked.
| |