Package com.liferay.portal.kernel.test
Class SwappableSecurityManager
Object
SecurityManager
com.liferay.portal.kernel.test.SwappableSecurityManager
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Author:
- Shuyang Zhou
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
checkPermission
(Permission permission) void
close()
void
install()
Methods inherited from class java.lang.SecurityManager
checkAccept, checkAccess, checkAccess, checkConnect, checkConnect, checkCreateClassLoader, checkDelete, checkExec, checkExit, checkLink, checkListen, checkMulticast, checkMulticast, checkPackageAccess, checkPackageDefinition, checkPermission, checkPrintJobAccess, checkPropertiesAccess, checkPropertyAccess, checkRead, checkRead, checkRead, checkSecurityAccess, checkSetFactory, checkWrite, checkWrite, getClassContext, getSecurityContext, getThreadGroup
-
Constructor Details
-
SwappableSecurityManager
public SwappableSecurityManager()
-
-
Method Details
-
checkPermission
- Overrides:
checkPermission
in classSecurityManager
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
install
public void install()
-