Liferay 6.2.0-ce-m4

com.liferay.portal.security.lang
Class PortalSecurityManager

java.lang.Object
  extended by java.lang.SecurityManager
      extended by com.liferay.portal.security.lang.PortalSecurityManager

public class PortalSecurityManager
extends SecurityManager

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
PortalSecurityManager()
           
 
Method Summary
 void checkMemberAccess(Class<?> clazz, int which)
           
 void checkPermission(Permission permission)
           
 void checkPermission(Permission permission, Object context)
           
protected  PACLPolicy getPACLPolicy(Permission permission)
           
protected  void initClasses()
           
protected  void initInitialContextFactoryBuilder()
           
protected  void parentCheckPermission(Permission permission, Object context)
           
 
Methods inherited from class java.lang.SecurityManager
checkAccept, checkAccess, checkAccess, checkAwtEventQueueAccess, checkConnect, checkConnect, checkCreateClassLoader, checkDelete, checkExec, checkExit, checkLink, checkListen, checkMulticast, checkMulticast, checkPackageAccess, checkPackageDefinition, 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

PortalSecurityManager

public PortalSecurityManager()
Method Detail

checkMemberAccess

public void checkMemberAccess(Class<?> clazz,
                              int which)
Overrides:
checkMemberAccess in class SecurityManager

checkPermission

public void checkPermission(Permission permission)
Overrides:
checkPermission in class SecurityManager

checkPermission

public void checkPermission(Permission permission,
                            Object context)
Overrides:
checkPermission in class SecurityManager

getPACLPolicy

protected PACLPolicy getPACLPolicy(Permission permission)

initClasses

protected void initClasses()

initInitialContextFactoryBuilder

protected void initInitialContextFactoryBuilder()
                                         throws Exception
Throws:
Exception

parentCheckPermission

protected void parentCheckPermission(Permission permission,
                                     Object context)

Liferay 6.2.0-ce-m4