KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > naming > core > JndiPermission


1 /*
2  * Copyright 1999-2004 The Apache Software Foundation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16
17 package org.apache.naming.core;
18
19 import java.security.BasicPermission JavaDoc;
20
21 /**
22  * Java SecurityManager Permission class for JNDI name based file resources
23  * <p>
24  * The JndiPermission extends the BasicPermission.
25  * The permission name is a full or partial jndi resource name.
26  * An * can be used at the end of the name to match all named
27  * resources that start with name. There are no actions.</p>
28  * <p>
29  * Example that grants permission to read all JNDI file based resources:
30  * <li> permission org.apache.naming.JndiPermission "*";</li>
31  * </p>
32  *
33  * @author Glenn Nielsen
34  * @version $Revision: 1.3 $ $Date: 2004/02/24 08:58:08 $
35  */

36
37 public final class JndiPermission extends BasicPermission JavaDoc {
38
39     // ----------------------------------------------------------- Constructors
40

41     /**
42      * Creates a new JndiPermission with no actions
43      *
44      * @param String - JNDI resource path name
45      */

46     public JndiPermission(String JavaDoc name) {
47         super(name);
48     }
49
50     /**
51      * Creates a new JndiPermission with actions
52      *
53      * @param String - JNDI resource path name
54      * @param String - JNDI actions (none defined)
55      */

56     public JndiPermission(String JavaDoc name, String JavaDoc actions) {
57         super(name,actions);
58     }
59
60 }
61
Popular Tags