Apache Tomcat 7.0.28

org.apache.naming
Class JndiPermission

java.lang.Object
  extended by java.security.Permission
      extended by java.security.BasicPermission
          extended by org.apache.naming.JndiPermission
All Implemented Interfaces:
Serializable, Guard

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:
    $Id: JndiPermission.java 1038846 2010-11-24 22:08:38Z markt $
    Author:
    Glenn Nielsen
    See Also:
    Serialized Form

    Constructor Summary
    JndiPermission(String name)
              Creates a new JndiPermission with no actions
    JndiPermission(String name, String actions)
              Creates a new JndiPermission with actions
     
    Method Summary
     
    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

    JndiPermission

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

    Parameters:
    name - - JNDI resource path name

    JndiPermission

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

    Parameters:
    name - - JNDI resource path name
    actions - - JNDI actions (none defined)

    Apache Tomcat 7.0.28

    Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.