org.apache.naming

Class 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 "*";
  • Version:
    $Revision: 1.3 $ $Date: 2004/02/27 14:58:53 $

    Author:
    Glenn Nielsen

    Constructor Summary

    JndiPermission(String name)
    Creates a new JndiPermission with no actions
    JndiPermission(String name, String actions)
    Creates a new JndiPermission with actions

    Constructor Details

    JndiPermission

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

    Parameters:


    JndiPermission

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

    Parameters:


    Copyright B) 2000-2003 Apache Software Foundation. All Rights Reserved.