public class KerberosConfigurationDescriptor extends AbstractKerberosDescriptor
{ "core-site": { "hadoop.security.authentication": "kerberos", "hadoop.rpc.protection": "authentication; integrity; privacy", "hadoop.security.authorization": "true" } }In this implementation,
AbstractKerberosDescriptor.name
will hold the
KerberosConfigurationDescriptor#type valueAbstractKerberosDescriptor.Type
Constructor and Description |
---|
KerberosConfigurationDescriptor(Map<?,?> data)
Creates a new KerberosConfigurationDescriptor
See
KerberosConfigurationDescriptor for an
example JSON structure that may be used to generate this map. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object) |
Map<String,String> |
getProperties()
Gets the properties of the configuration data represented by this KerberosConfigurationDescriptor
|
String |
getProperty(String name)
Gets the value of the configuration property with the specified name
|
String |
getType()
Returns the type of the configuration data represented by this KerberosConfigurationDescriptor
|
int |
hashCode() |
void |
putProperty(String name,
String value)
Adds or updates the value of the configuration property with the specified name
If the property exists, it will be overwritten; else a new entry will be created.
|
void |
setProperties(Map<String,String> properties)
Set the properties of the configuration data represented by this KerberosConfigurationDescriptor
|
void |
setType(String type)
Sets the type of the configuration data represented by this KerberosConfigurationDescriptor
|
Map<String,Object> |
toMap()
Creates a Map of values that can be used to create a copy of this KerberosConfigurationDescriptor
or generate the JSON structure described in
KerberosConfigurationDescriptor |
void |
update(KerberosConfigurationDescriptor updates)
Updates this KerberosConfigurationDescriptor with data from another KerberosConfigurationDescriptor
Properties will be updated if the relevant updated values are not null.
|
getBooleanValue, getBooleanValue, getDescriptor, getName, getParent, getPath, getRoot, getStringValue, getValue, isContainer, nullToEmpty, nullToEmpty, nullToEmpty, setName, setParent
public KerberosConfigurationDescriptor(Map<?,?> data)
KerberosConfigurationDescriptor
for an
example JSON structure that may be used to generate this map.data
- a Map of values use to populate the data for the new instanceKerberosConfigurationDescriptor
public String getType()
public void setType(String type)
type
- a String declaring the configuration group type, i.e., core-sitepublic void setProperties(Map<String,String> properties)
properties
- a Map of propertiespublic Map<String,String> getProperties()
public String getProperty(String name)
name
- a String declaring the name of the property to retrievepublic void putProperty(String name, String value)
name
- a String declaring the name of the property to setvalue
- a String containing the value of the propertypublic void update(KerberosConfigurationDescriptor updates)
updates
- the KerberosConfigurationDescriptor containing the updated valuespublic Map<String,Object> toMap()
KerberosConfigurationDescriptor
toMap
in class AbstractKerberosDescriptor
KerberosConfigurationDescriptor
public int hashCode()
hashCode
in class AbstractKerberosDescriptor
public boolean equals(Object object)
equals
in class AbstractKerberosDescriptor
Copyright © 2022 Apache Software Foundation. All rights reserved.