public class WhitelistBasedTrustedChannelResolver
extends org.apache.hadoop.hdfs.protocol.datatransfer.TrustedChannelResolver
Modifier and Type | Field and Description |
---|---|
static String |
DFS_DATATRANSFER_CLIENT_FIXEDWHITELIST_FILE
Path to the file to containing subnets and ip addresses to form fixed whitelist.
|
static String |
DFS_DATATRANSFER_CLIENT_VARIABLEWHITELIST_CACHE_SECS
time in seconds by which the variable whitelist file is checked for updates
|
static String |
DFS_DATATRANSFER_CLIENT_VARIABLEWHITELIST_ENABLE
Enables/Disables variable whitelist
|
static String |
DFS_DATATRANSFER_CLIENT_VARIABLEWHITELIST_FILE
Path to the file to containing subnets and ip addresses to form variable whitelist.
|
static String |
DFS_DATATRANSFER_SERVER_FIXEDWHITELIST_FILE
Path to the file to containing subnets and ip addresses to form fixed whitelist.
|
static String |
DFS_DATATRANSFER_SERVER_VARIABLEWHITELIST_CACHE_SECS
time in seconds by which the variable whitelist file is checked for updates
|
static String |
DFS_DATATRANSFER_SERVER_VARIABLEWHITELIST_ENABLE
Enables/Disables variable whitelist
|
static String |
DFS_DATATRANSFER_SERVER_VARIABLEWHITELIST_FILE
Path to the file to containing subnets and ip addresses to form variable whitelist.
|
Constructor and Description |
---|
WhitelistBasedTrustedChannelResolver() |
Modifier and Type | Method and Description |
---|---|
boolean |
isTrusted() |
boolean |
isTrusted(InetAddress clientAddress) |
void |
setConf(org.apache.hadoop.conf.Configuration conf) |
public static final String DFS_DATATRANSFER_SERVER_FIXEDWHITELIST_FILE
public static final String DFS_DATATRANSFER_SERVER_VARIABLEWHITELIST_ENABLE
public static final String DFS_DATATRANSFER_SERVER_VARIABLEWHITELIST_FILE
public static final String DFS_DATATRANSFER_SERVER_VARIABLEWHITELIST_CACHE_SECS
public static final String DFS_DATATRANSFER_CLIENT_FIXEDWHITELIST_FILE
public static final String DFS_DATATRANSFER_CLIENT_VARIABLEWHITELIST_ENABLE
public static final String DFS_DATATRANSFER_CLIENT_VARIABLEWHITELIST_FILE
public static final String DFS_DATATRANSFER_CLIENT_VARIABLEWHITELIST_CACHE_SECS
public WhitelistBasedTrustedChannelResolver()
public void setConf(org.apache.hadoop.conf.Configuration conf)
setConf
in interface org.apache.hadoop.conf.Configurable
setConf
in class org.apache.hadoop.hdfs.protocol.datatransfer.TrustedChannelResolver
public boolean isTrusted()
isTrusted
in class org.apache.hadoop.hdfs.protocol.datatransfer.TrustedChannelResolver
public boolean isTrusted(InetAddress clientAddress)
isTrusted
in class org.apache.hadoop.hdfs.protocol.datatransfer.TrustedChannelResolver
Copyright © 2018 Apache Software Foundation. All Rights Reserved.