KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > joda > time > JodaTimePermission


1 /*
2  * Copyright 2001-2005 Stephen Colebourne
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 package org.joda.time;
17
18 import java.security.BasicPermission JavaDoc;
19
20 /**
21  * JodaTimePermission is used for securing global method calls in the Joda-Time
22  * library. Since this class extends BasicPermission, asterisks may be used to
23  * denote wildcard permissions. The following permissions are supported:
24  *
25  * <pre>
26  * DateTimeZone
27  * .setDefault Allows a default DateTimeZone to be set
28  * .setProvider Allows the DateTimeZone instance provider to be set
29  * .setNameProvider Allows the DateTimeZone name provider to be set
30  *
31  * ConverterManager
32  * .alterInstantConverters Allows an instant converter to be added or removed
33  * .alterPartialConverters Allows a partial converter to be added or removed
34  * .alterDurationConverters Allows a duration converter to be added or removed
35  * .alterPeriodConverters Allows a period converter to be added or removed
36  * .alterIntervalConverters Allows an interval converter to be added or removed
37  *
38  * CurrentTime.setProvider Allows the current time provider to be set
39  * </pre>
40  * <p>
41  * JodaTimePermission is thread-safe and immutable.
42  *
43  * @author Brian S O'Neill
44  * @since 1.0
45  */

46 public class JodaTimePermission extends BasicPermission JavaDoc {
47     
48     /** Serialization version */
49     private static final long serialVersionUID = 1408944367355875472L;
50
51     /**
52      * Constructs a new permission object.
53      *
54      * @param name the permission name
55      */

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