org.eclipse.osgi.internal.permadmin
Class EquinoxSecurityManager

java.lang.Object
  extended by java.lang.SecurityManager
      extended by org.eclipse.osgi.internal.permadmin.EquinoxSecurityManager

public class EquinoxSecurityManager
extends SecurityManager

This security manager implements the ConditionalPermission processing for OSGi. It is to be used with ConditionalPermissionAdmin.


Field Summary
 
Fields inherited from class java.lang.SecurityManager
inCheck
 
Constructor Summary
EquinoxSecurityManager()
           
 
Method Summary
 void checkPermission(Permission perm)
           
 void checkPermission(Permission perm, Object context)
           
 AccessControlContext getContextToBeChecked()
          Gets the AccessControlContext currently being evaluated by the SecurityManager.
 Object getSecurityContext()
           
 
Methods inherited from class java.lang.SecurityManager
checkAccept, checkAccess, checkAccess, checkAwtEventQueueAccess, checkConnect, checkConnect, checkCreateClassLoader, checkDelete, checkExec, checkExit, checkLink, checkListen, checkMemberAccess, checkMulticast, checkMulticast, checkPackageAccess, checkPackageDefinition, checkPrintJobAccess, checkPropertiesAccess, checkPropertyAccess, checkRead, checkRead, checkRead, checkSecurityAccess, checkSetFactory, checkSystemClipboardAccess, checkTopLevelWindow, checkWrite, checkWrite, classDepth, classLoaderDepth, currentClassLoader, currentLoadedClass, getClassContext, getInCheck, getThreadGroup, inClass, inClassLoader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EquinoxSecurityManager

public EquinoxSecurityManager()
Method Detail

checkPermission

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

getContextToBeChecked

public AccessControlContext getContextToBeChecked()
Gets the AccessControlContext currently being evaluated by the SecurityManager.

Returns:
the AccessControlContext currently being evaluated by the SecurityManager, or null if no AccessControlContext is being evaluated. Note: this method will return null if the permission check is being done directly on the AccessControlContext rather than the SecurityManager.

checkPermission

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

getSecurityContext

public Object getSecurityContext()
Overrides:
getSecurityContext in class SecurityManager


Copyright © 2007–2014 The Apache Software Foundation. All rights reserved.