org.wso2.carbon.bootstrap
Class CarbonSecurityManager

java.lang.Object
  extended by java.lang.SecurityManager
      extended by org.wso2.carbon.bootstrap.CarbonSecurityManager

public class CarbonSecurityManager
extends SecurityManager

This is the carbon security manager. We need to deny certain property accesses through security manager. Therefore we had to extend security manager.


Field Summary
 
Fields inherited from class java.lang.SecurityManager
inCheck
 
Constructor Summary
CarbonSecurityManager()
           
 
Method Summary
 void checkAccess(Thread t)
          Access check for a thread.
 void checkAccess(ThreadGroup g)
          Access check for a thread group.
 void checkPropertyAccess(String key)
           
 
Methods inherited from class java.lang.SecurityManager
checkAccept, checkAwtEventQueueAccess, checkConnect, checkConnect, checkCreateClassLoader, checkDelete, checkExec, checkExit, checkLink, checkListen, checkMemberAccess, checkMulticast, checkMulticast, checkPackageAccess, checkPackageDefinition, checkPermission, checkPermission, checkPrintJobAccess, checkPropertiesAccess, 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

CarbonSecurityManager

public CarbonSecurityManager()
Method Detail

checkPropertyAccess

public void checkPropertyAccess(String key)
Overrides:
checkPropertyAccess in class SecurityManager

checkAccess

public void checkAccess(ThreadGroup g)
Access check for a thread group. Untrusted code should not be able to do any operations to a thread group (including thread.start()).

Overrides:
checkAccess in class SecurityManager
Parameters:
g - The thread group.

checkAccess

public void checkAccess(Thread t)
Access check for a thread. Untrusted code should not be able to do any operations to a thread (including thread.start()).

Overrides:
checkAccess in class SecurityManager
Parameters:
t - The thread.


Copyright © 2014 WSO2 Inc. All rights reserved.