com.sun.jaw.reference.common
Class JawStaticMethodPermission

java.lang.Object
  |
  +--java.security.Permission
        |
        +--java.security.BasicPermission
              |
              +--com.sun.jaw.reference.common.JawStaticMethodPermission

public class JawStaticMethodPermission
extends java.security.BasicPermission

This class is for public static methods permissions. A JawStaticMethodPermission contains a name (also referred to as a "target name") but no actions list; you either have the named permission or you don't.

The target name is the name a class which contains public static methods that require this permission.

The following table lists all the possible JawStaticMethodPermission target names and for each provides the list of methods to which access is granted by the permission.

Target Name Grants Access to Methods
com.sun.jaw.reference.common.Debug
flush()
getLevel()
getLog()
isLevelSet(int atLevel)
parseDebugProperties()
print(Object arg)
print(boolean condition, Object arg)
print(int atLevel, Object arg)
printException(Exception e)
printFormatted(Object arg)
println(Object arg)
println(boolean condition, Object arg)
println(int atLevel, Object arg)
setDefault(boolean mode)
setLevel(int l)
setLog(PrintWriter l)
setOff(int forLevel)
setOffAll()
setOn(int forLevel)
setOnAll()
com.sun.jaw.reference.common.LoaderRepository
addClassLoader(ClassLoader aloader)
loadClass(String className)
loadClassWithout(ClassLoader aloader,String className)
removeClassLoader(ClassLoader aloader)
com.sun.jaw.impl.common.DefaultPaths
setEtcDir(String dirname)
setInstallDir(String dirname)
setTmpDir(String dirname)
setVarDir(String dirname)

See Also:
Serialized Form

Constructor Summary
JawStaticMethodPermission(java.lang.String name)
          Creates a new JawStaticMethodPermission with the specified name.
JawStaticMethodPermission(java.lang.String name, java.lang.String actions)
          Creates a new JawStaticMethodPermission object with the specified name.
 
Methods inherited from class java.security.BasicPermission
equals, getActions, hashCode, implies, newPermissionCollection
 
Methods inherited from class java.security.Permission
checkGuard, getName, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JawStaticMethodPermission

public JawStaticMethodPermission(java.lang.String name)
Creates a new JawStaticMethodPermission with the specified name. The name is the symbolic name of the JawStaticMethodPermission, such as "com.sun.jaw.reference.common.Debug", "com.sun.jaw.impl.common.DefaultPaths", etc.
Parameters:
name - the name of the JawStaticMethodPermission.

JawStaticMethodPermission

public JawStaticMethodPermission(java.lang.String name,
                                 java.lang.String actions)
Creates a new JawStaticMethodPermission object with the specified name. The name is the symbolic name of the JawStaticMethodPermission, and the actions String is currently unused and should be null. This constructor exists for use by the Policy object to instantiate new Permission objects.
Parameters:
name - the name of the JawStaticMethodPermission.
actions - should be null.