001    /*
002     *  Copyright 2001-2005 Stephen Colebourne
003     *
004     *  Licensed under the Apache License, Version 2.0 (the "License");
005     *  you may not use this file except in compliance with the License.
006     *  You may obtain a copy of the License at
007     *
008     *      http://www.apache.org/licenses/LICENSE-2.0
009     *
010     *  Unless required by applicable law or agreed to in writing, software
011     *  distributed under the License is distributed on an "AS IS" BASIS,
012     *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013     *  See the License for the specific language governing permissions and
014     *  limitations under the License.
015     */
016    package org.joda.time;
017    
018    import java.security.BasicPermission;
019    
020    /**
021     * JodaTimePermission is used for securing global method calls in the Joda-Time
022     * library. Since this class extends BasicPermission, asterisks may be used to
023     * denote wildcard permissions. The following permissions are supported:
024     *
025     * <pre>
026     * DateTimeZone
027     *   .setDefault                 Allows a default DateTimeZone to be set
028     *   .setProvider                Allows the DateTimeZone instance provider to be set
029     *   .setNameProvider            Allows the DateTimeZone name provider to be set
030     *
031     * ConverterManager
032     *   .alterInstantConverters     Allows an instant converter to be added or removed
033     *   .alterPartialConverters     Allows a partial converter to be added or removed
034     *   .alterDurationConverters    Allows a duration converter to be added or removed
035     *   .alterPeriodConverters      Allows a period converter to be added or removed
036     *   .alterIntervalConverters    Allows an interval converter to be added or removed
037     *
038     * CurrentTime.setProvider       Allows the current time provider to be set
039     * </pre>
040     * <p>
041     * JodaTimePermission is thread-safe and immutable.
042     *
043     * @author Brian S O'Neill
044     * @since 1.0
045     */
046    public class JodaTimePermission extends BasicPermission {
047        
048        /** Serialization version */
049        private static final long serialVersionUID = 1408944367355875472L;
050    
051        /**
052         * Constructs a new permission object.
053         * 
054         * @param name  the permission name
055         */
056        public JodaTimePermission(String name) {
057            super(name);
058        }
059    
060    }