Liferay 6.2.0-ce-m5

com.liferay.portal.security.pacl
Class PortalSecurityManagerImpl

java.lang.Object
  extended by java.lang.SecurityManager
      extended by 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.


Field Summary
 
Fields inherited from class java.lang.SecurityManager
inCheck
 
Constructor Summary
PortalSecurityManagerImpl()
           
 
Method Summary
 void checkMemberAccess(Class<?> clazz, int accessibility)
           
 void checkPermission(Permission permission)
           
 Policy getPolicy()
           
protected  void initClass(Class<?> clazz)
           
protected  void initClasses()
           
protected  void initInitialContextFactoryBuilder()
           
protected  void initPACLImpl(Class<?> clazz, Object pacl)
           
protected  void initPACLImpls()
           
 
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
 

Constructor Detail

PortalSecurityManagerImpl

public PortalSecurityManagerImpl()
Method Detail

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

Liferay 6.2.0-ce-m5