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