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 019package org.apache.oozie.action.hadoop; 020 021import java.util.HashMap; 022 023public class CredentialsProperties { 024 String name; 025 String type; 026 HashMap<String, String> properties; 027 028 public CredentialsProperties(String name, String type) { 029 this.name = name; 030 this.type = type; 031 properties = new HashMap<String, String>(); 032 } 033 034 /** 035 * Get the name 036 * 037 * @return the name 038 */ 039 public String getName() { 040 return name; 041 } 042 043 /** 044 * Set the name 045 * 046 * @param name the name to set 047 */ 048 public void setName(String name) { 049 this.name = name; 050 } 051 052 /** 053 * Get the type 054 * 055 * @return the type 056 */ 057 public String getType() { 058 return type; 059 } 060 061 /** 062 * Set the type 063 * 064 * @param type the type to set 065 */ 066 public void setType(String type) { 067 this.type = type; 068 } 069 070 /** 071 * Get the properties 072 * 073 * @return the properties 074 */ 075 public HashMap<String, String> getProperties() { 076 return properties; 077 } 078 079 /** 080 * Set the properties 081 * 082 * @param properties the properties to set 083 */ 084 public void setProperties(HashMap<String, String> properties) { 085 this.properties = properties; 086 } 087}