001    /**
002     * Copyright (c) 2010 Yahoo! Inc. All rights reserved.
003     * Licensed under the Apache License, Version 2.0 (the "License");
004     * you may not use this file except in compliance with the License.
005     * You may obtain a copy of the License at
006     *
007     *   http://www.apache.org/licenses/LICENSE-2.0
008     *
009     *  Unless required by applicable law or agreed to in writing, software
010     *  distributed under the License is distributed on an "AS IS" BASIS,
011     *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
012     *  See the License for the specific language governing permissions and
013     *  limitations under the License. See accompanying LICENSE file.
014     */
015    package org.apache.oozie.action.hadoop;
016    
017    import java.util.HashMap;
018    
019    public class CredentialsProperties {
020        String name;
021        String type;
022        HashMap<String, String> properties;
023    
024        public CredentialsProperties(String name, String type) {
025            this.name = name;
026            this.type = type;
027            properties = new HashMap<String, String>();
028        }
029    
030        /**
031         * Get the name
032         *
033         * @return the name
034         */
035        public String getName() {
036            return name;
037        }
038    
039        /**
040         * Set the name
041         *
042         * @param name the name to set
043         */
044        public void setName(String name) {
045            this.name = name;
046        }
047    
048        /**
049         * Get the type
050         *
051         * @return the type
052         */
053        public String getType() {
054            return type;
055        }
056    
057        /**
058         * Set the type
059         *
060         * @param type the type to set
061         */
062        public void setType(String type) {
063            this.type = type;
064        }
065    
066        /**
067         * Get the properties
068         *
069         * @return the properties
070         */
071        public HashMap<String, String> getProperties() {
072            return properties;
073        }
074    
075        /**
076         * Set the properties
077         *
078         * @param properties the properties to set
079         */
080        public void setProperties(HashMap<String, String> properties) {
081            this.properties = properties;
082        }
083    }