FileDocCategorySizeDatePackage
JndiPermission.javaAPI DocGlassfish v2 API3264Fri May 04 22:33:00 BST 2007org.apache.naming

JndiPermission

public final class JndiPermission extends BasicPermission
Java SecurityManager Permission class for JNDI name based file resources

The JndiPermission extends the BasicPermission. The permission name is a full or partial jndi resource name. An * can be used at the end of the name to match all named resources that start with name. There are no actions.

Example that grants permission to read all JNDI file based resources:

  • permission org.apache.naming.JndiPermission "*";
  • author
    Glenn Nielsen
    version
    $Revision: 1.3 $ $Date: 2007/05/05 05:32:59 $

    Fields Summary
    Constructors Summary
    public JndiPermission(String name)
    Creates a new JndiPermission with no actions

    param
    String - JNDI resource path name

            super(name);
        
    public JndiPermission(String name, String actions)
    Creates a new JndiPermission with actions

    param
    String - JNDI resource path name
    param
    String - JNDI actions (none defined)

            super(name,actions);
        
    Methods Summary