Top Description Fields Constructors Methods
org.hibernate.internal.util.securitymanager

public final Class SystemSecurityManager

extends Object
Class Inheritance

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 Summary

Modifier and TypeField and Description
private static final boolean
public static final String
private static final boolean

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

disabledForcedback to summary
private static final boolean disabledForced
FULLY_DISABLE_PROP_NAMEback to summary
public static final String FULLY_DISABLE_PROP_NAME
SM_IS_ENABLEDback to summary
private static final boolean SM_IS_ENABLED

Constructor Detail

SystemSecurityManagerback to summary
public SystemSecurityManager()

Method Detail

isSecurityManagerEnabledback to summary
public static boolean isSecurityManagerEnabled()