Liferay 6.2.0-ce-m5

com.liferay.portal.security.pacl.checker
Class RuntimeChecker

java.lang.Object
  extended by com.liferay.portal.security.pacl.checker.BaseChecker
      extended by com.liferay.portal.security.pacl.checker.RuntimeChecker
All Implemented Interfaces:
PACLConstants, Checker

public class RuntimeChecker
extends BaseChecker


Field Summary
 
Fields inherited from interface com.liferay.portal.kernel.security.pacl.PACLConstants
FILE_PERMISSION_ACTION_DELETE, FILE_PERMISSION_ACTION_EXECUTE, FILE_PERMISSION_ACTION_READ, FILE_PERMISSION_ACTION_WRITE, MBEAN_PERMISSION_IS_INSTANCE_OF, MBEAN_PERMISSION_REGISTER_MBEAN, MBEAN_PERMISSION_UNREGISTER_MBEAN, MBEAN_TRUST_PERMISSION_REGISTER, NET_PERMISSION_GET_PROXY_SELECTOR, NET_PERMISSION_SPECIFY_STREAM_HANDLER, PORTAL_HOOK_PERMISSION_CUSTOM_JSP_DIR, PORTAL_HOOK_PERMISSION_INDEXER, PORTAL_HOOK_PERMISSION_LANGUAGE_PROPERTIES_LOCALE, PORTAL_HOOK_PERMISSION_PORTAL_PROPERTIES_KEY, PORTAL_HOOK_PERMISSION_SERVICE, PORTAL_HOOK_PERMISSION_SERVLET_FILTERS, PORTAL_HOOK_PERMISSION_STRUTS_ACTION_PATH, PORTAL_MESSAGE_BUS_PERMISSION_LISTEN, PORTAL_MESSAGE_BUS_PERMISSION_SEND, PORTAL_RUNTIME_PERMISSION_EXPANDO_BRIDGE, PORTAL_RUNTIME_PERMISSION_GET_BEAN_PROPERTY, PORTAL_RUNTIME_PERMISSION_GET_CLASSLOADER, PORTAL_RUNTIME_PERMISSION_PORTLET_BAG_POOL, PORTAL_RUNTIME_PERMISSION_PORTLET_BAG_POOL_ALL_PORTLETS, PORTAL_RUNTIME_PERMISSION_SEARCH_ENGINE, PORTAL_RUNTIME_PERMISSION_SET_BEAN_PROPERTY, PORTAL_RUNTIME_PERMISSION_THREAD_POOL_ALL_EXECUTORS, PORTAL_RUNTIME_PERMISSION_THREAD_POOL_EXECUTOR, PORTAL_SERVICE_PERMISSION_SERVICE, RUNTIME_PERMISSION_ACCESS_CLASS_IN_PACKAGE, RUNTIME_PERMISSION_ACCESS_DECLARED_MEMBERS, RUNTIME_PERMISSION_CREATE_CLASS_LOADER, RUNTIME_PERMISSION_CREATE_SECURITY_MANAGER, RUNTIME_PERMISSION_GET_CLASSLOADER, RUNTIME_PERMISSION_GET_ENV, RUNTIME_PERMISSION_GET_PROTECTION_DOMAIN, RUNTIME_PERMISSION_LOAD_LIBRARY, RUNTIME_PERMISSION_READ_FILE_DESCRIPTOR, RUNTIME_PERMISSION_SET_CONTEXT_CLASS_LOADER, RUNTIME_PERMISSION_SET_SECURITY_MANAGER, RUNTIME_PERMISSION_WRITE_FILE_DESCRIPTOR, SECURITY_PERMISSION_GET_POLICY, SECURITY_PERMISSION_SET_POLICY, SOCKET_PERMISSION_ACCEPT, SOCKET_PERMISSION_CONNECT, SOCKET_PERMISSION_LISTEN, SOCKET_PERMISSION_RESOLVE
 
Constructor Summary
RuntimeChecker()
           
 
Method Summary
 void afterPropertiesSet()
           
 AuthorizationProperty generateAuthorizationProperty(Object... arguments)
           
protected  boolean hasAccessClassInPackage(String pkg)
           
protected  boolean hasCreateClassLoader(Permission permission)
           
protected  boolean hasCreateSecurityManager(Permission permission)
           
protected  boolean hasGetClassLoader(Permission permission)
           
protected  boolean hasGetEnv(String name, Permission permission)
           
protected  boolean hasGetProtectionDomain(Permission permission)
           
protected  boolean hasLoadLibrary(Permission permission)
           
protected  boolean hasReadFileDescriptor(Permission permission)
           
protected  boolean hasReflect(Permission permission)
           
protected  boolean hasSetContextClassLoader(Permission permission)
           
protected  boolean hasWriteFileDescriptor(Permission permission)
           
 boolean implies(Permission permission)
           
protected  void initEnvironmentVariables()
           
 
Methods inherited from class com.liferay.portal.security.pacl.checker.BaseChecker
getClassLoader, getPACLPolicy, getProperties, getProperty, getPropertyArray, getPropertyBoolean, getPropertySet, getServletContextName, getStackIndex, getStackIndex, isTrustedCaller, logSecurityException, setPACLPolicy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuntimeChecker

public RuntimeChecker()
Method Detail

afterPropertiesSet

public void afterPropertiesSet()

generateAuthorizationProperty

public AuthorizationProperty generateAuthorizationProperty(Object... arguments)
Specified by:
generateAuthorizationProperty in interface Checker
Overrides:
generateAuthorizationProperty in class BaseChecker

implies

public boolean implies(Permission permission)

hasAccessClassInPackage

protected boolean hasAccessClassInPackage(String pkg)

hasCreateClassLoader

protected boolean hasCreateClassLoader(Permission permission)

hasCreateSecurityManager

protected boolean hasCreateSecurityManager(Permission permission)

hasGetClassLoader

protected boolean hasGetClassLoader(Permission permission)

hasGetEnv

protected boolean hasGetEnv(String name,
                            Permission permission)

hasGetProtectionDomain

protected boolean hasGetProtectionDomain(Permission permission)

hasLoadLibrary

protected boolean hasLoadLibrary(Permission permission)

hasReadFileDescriptor

protected boolean hasReadFileDescriptor(Permission permission)

hasReflect

protected boolean hasReflect(Permission permission)

hasSetContextClassLoader

protected boolean hasSetContextClassLoader(Permission permission)

hasWriteFileDescriptor

protected boolean hasWriteFileDescriptor(Permission permission)

initEnvironmentVariables

protected void initEnvironmentVariables()

Liferay 6.2.0-ce-m5