Class SystemSecurityManager

java.lang.Object
org.hibernate.internal.util.securitymanager.SystemSecurityManager

public final class SystemSecurityManager extends Object
Encapsulates access to System.getSecurityManager(), in preparation of it being phased out by the JDK. Since JDK 17 the security manager can be disabled by setting the system property java.security.manager to disallow; to prepare for this we also offer the option of setting org.hibernate.internal.util.securitymanager.FULLY_DISABLE to true to have the same effect, although limited to the Hibernate ORM code.
  • Field Details

  • Constructor Details

    • SystemSecurityManager

      public SystemSecurityManager()
  • Method Details

    • isSecurityManagerEnabled

      public static boolean isSecurityManagerEnabled()