public class WhitelistBasedResolver extends SaslPropertiesResolver
Modifier and Type | Field and Description |
---|---|
static String |
HADOOP_RPC_PROTECTION_NON_WHITELIST
comma separated list containing alternate hadoop.rpc.protection values for
clients which are not in whitelist
|
static String |
HADOOP_SECURITY_SASL_FIXEDWHITELIST_FILE
Path to the file to containing subnets and ip addresses to form fixed whitelist.
|
static String |
HADOOP_SECURITY_SASL_VARIABLEWHITELIST_CACHE_SECS
time in seconds by which the variable whitelist file is checked for updates
|
static String |
HADOOP_SECURITY_SASL_VARIABLEWHITELIST_ENABLE
Enables/Disables variable whitelist
|
static String |
HADOOP_SECURITY_SASL_VARIABLEWHITELIST_FILE
Path to the file to containing subnets and ip addresses to form variable whitelist.
|
static org.apache.commons.logging.Log |
LOG |
Constructor and Description |
---|
WhitelistBasedResolver() |
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getServerProperties(InetAddress clientAddress)
Identify the Sasl Properties to be used for a connection with a client.
|
Map<String,String> |
getServerProperties(String clientAddress) |
void |
setConf(Configuration conf)
Set the configuration to be used by this object.
|
getClientProperties, getConf, getDefaultProperties, getInstance
public static final org.apache.commons.logging.Log LOG
public static final String HADOOP_SECURITY_SASL_FIXEDWHITELIST_FILE
public static final String HADOOP_SECURITY_SASL_VARIABLEWHITELIST_ENABLE
public static final String HADOOP_SECURITY_SASL_VARIABLEWHITELIST_FILE
public static final String HADOOP_SECURITY_SASL_VARIABLEWHITELIST_CACHE_SECS
public static final String HADOOP_RPC_PROTECTION_NON_WHITELIST
public WhitelistBasedResolver()
public void setConf(Configuration conf)
Configurable
setConf
in interface Configurable
setConf
in class SaslPropertiesResolver
public Map<String,String> getServerProperties(InetAddress clientAddress)
getServerProperties
in class SaslPropertiesResolver
clientAddress
- client's addresspublic Map<String,String> getServerProperties(String clientAddress) throws UnknownHostException
UnknownHostException
Copyright © 2017 Apache Software Foundation. All Rights Reserved.