com.liferay.portal.security.pacl
Class PortalSecurityManagerImpl
java.lang.Object
java.lang.SecurityManager
com.liferay.portal.security.pacl.PortalSecurityManagerImpl
- All Implemented Interfaces:
- PortalSecurityManager
public class PortalSecurityManagerImpl
- extends SecurityManager
- implements PortalSecurityManager
This is the portal's implementation of a security manager. The goal is to
protect portal resources from plugins and prevent security issues by forcing
plugin developers to openly declare their requirements. Where a
SecurityManager exists, we set that as the parent and delegate to it as a
fallback. This class will not delegate checks to super when there is no
parent so as to avoid forcing the need for a default policy.
| Methods inherited from class java.lang.SecurityManager |
checkAccept, checkAccess, checkAccess, checkAwtEventQueueAccess, checkConnect, checkConnect, checkCreateClassLoader, checkDelete, checkExec, checkExit, checkLink, checkListen, checkMulticast, checkMulticast, checkPackageAccess, checkPackageDefinition, checkPermission, checkPrintJobAccess, checkPropertiesAccess, checkPropertyAccess, checkRead, checkRead, checkRead, checkSecurityAccess, checkSetFactory, checkSystemClipboardAccess, checkTopLevelWindow, checkWrite, checkWrite, classDepth, classLoaderDepth, currentClassLoader, currentLoadedClass, getClassContext, getInCheck, getSecurityContext, getThreadGroup, inClass, inClassLoader |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PortalSecurityManagerImpl
public PortalSecurityManagerImpl()
checkMemberAccess
public void checkMemberAccess(Class<?> clazz,
int accessibility)
- Overrides:
checkMemberAccess in class SecurityManager
checkPermission
public void checkPermission(Permission permission)
- Overrides:
checkPermission in class SecurityManager
getPolicy
public Policy getPolicy()
- Specified by:
getPolicy in interface PortalSecurityManager
initClass
protected void initClass(Class<?> clazz)
initClasses
protected void initClasses()
initInitialContextFactoryBuilder
protected void initInitialContextFactoryBuilder()
throws Exception
- Throws:
Exception
initPACLImpl
protected void initPACLImpl(Class<?> clazz,
Object pacl)
throws Exception
- Throws:
Exception
initPACLImpls
protected void initPACLImpls()
throws Exception
- Throws:
Exception