com.ls.lars.security
Class LarsSecurityManager

java.lang.Object
  |
  +--java.lang.SecurityManager
        |
        +--com.ls.lars.security.LarsSecurityManager

public final class LarsSecurityManager
extends SecurityManager

SecurityManager of the "living agent runtime system". It checks which components are calling System.exit() or Locale.setDefault() and controls which components are allowed to call a special method.

Version:
$Revision: 1.8 $
Author:
Last modified by $Author: MFehrenbach $

Fields inherited from class java.lang.SecurityManager
inCheck
 
Constructor Summary
LarsSecurityManager()
          Creates the security manager for lars.
LarsSecurityManager(boolean useSecurityPolicyFile)
          Creates the security manager for lars.
 
Method Summary
 void checkPermission(Permission permission)
          Throws a SecurityException if the requested access, specified by the given permission, is not permitted based on the security policy currently in effect.
 
Methods inherited from class java.lang.SecurityManager
checkAccept, checkAccess, checkAccess, checkAwtEventQueueAccess, checkConnect, checkConnect, checkCreateClassLoader, checkDelete, checkExec, checkExit, checkLink, checkListen, checkMemberAccess, 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

LarsSecurityManager

public LarsSecurityManager()
Creates the security manager for lars.

LarsSecurityManager

public LarsSecurityManager(boolean useSecurityPolicyFile)
Creates the security manager for lars.
Parameters:
useSecurityPolicyFile - Flag, which indicates whether a policy file should be used or not
Method Detail

checkPermission

public void checkPermission(Permission permission)
                     throws SecurityException
Throws a SecurityException if the requested access, specified by the given permission, is not permitted based on the security policy currently in effect.
Overrides:
checkPermission in class SecurityManager
Parameters:
permission - the requested permission.
Throws:
SecurityException - If access is not permitted based on the current security policy.