Package org.apache.naming
Class JndiPermission
- java.lang.Object
-
- java.security.Permission
-
- java.security.BasicPermission
-
- org.apache.naming.JndiPermission
-
- All Implemented Interfaces:
Serializable
,Guard
public final class JndiPermission extends BasicPermission
Java SecurityManager Permission class for JNDI name based file resourcesThe 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.1.2.1 $ $Date: 2007/08/17 15:46:28 $
- Author:
- Glenn Nielsen
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JndiPermission(String name)
Creates a new JndiPermission with no actionsJndiPermission(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
-
-
-
-
Constructor Detail
-
JndiPermission
public JndiPermission(String name)
Creates a new JndiPermission with no actions- Parameters:
name
- JNDI resource path name
-
-