org.apache.hadoop.hdfs.protocol.datatransfer
Class WhitelistBasedTrustedChannelResolver

java.lang.Object
  extended by org.apache.hadoop.hdfs.protocol.datatransfer.TrustedChannelResolver
      extended by org.apache.hadoop.hdfs.protocol.datatransfer.WhitelistBasedTrustedChannelResolver
All Implemented Interfaces:
org.apache.hadoop.conf.Configurable

public class WhitelistBasedTrustedChannelResolver
extends TrustedChannelResolver


Field Summary
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 Summary
WhitelistBasedTrustedChannelResolver()
           
 
Method Summary
 boolean isTrusted()
          Return boolean value indicating whether a channel is trusted or not from a client's perspective.
 boolean isTrusted(InetAddress clientAddress)
          Identify boolean value indicating whether a channel is trusted or not.
 void setConf(org.apache.hadoop.conf.Configuration conf)
           
 
Methods inherited from class org.apache.hadoop.hdfs.protocol.datatransfer.TrustedChannelResolver
getConf, getInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DFS_DATATRANSFER_SERVER_FIXEDWHITELIST_FILE

public static final String DFS_DATATRANSFER_SERVER_FIXEDWHITELIST_FILE
Path to the file to containing subnets and ip addresses to form fixed whitelist.

See Also:
Constant Field Values

DFS_DATATRANSFER_SERVER_VARIABLEWHITELIST_ENABLE

public static final String DFS_DATATRANSFER_SERVER_VARIABLEWHITELIST_ENABLE
Enables/Disables variable whitelist

See Also:
Constant Field Values

DFS_DATATRANSFER_SERVER_VARIABLEWHITELIST_FILE

public static final String DFS_DATATRANSFER_SERVER_VARIABLEWHITELIST_FILE
Path to the file to containing subnets and ip addresses to form variable whitelist.

See Also:
Constant Field Values

DFS_DATATRANSFER_SERVER_VARIABLEWHITELIST_CACHE_SECS

public static final String DFS_DATATRANSFER_SERVER_VARIABLEWHITELIST_CACHE_SECS
time in seconds by which the variable whitelist file is checked for updates

See Also:
Constant Field Values

DFS_DATATRANSFER_CLIENT_FIXEDWHITELIST_FILE

public static final String DFS_DATATRANSFER_CLIENT_FIXEDWHITELIST_FILE
Path to the file to containing subnets and ip addresses to form fixed whitelist.

See Also:
Constant Field Values

DFS_DATATRANSFER_CLIENT_VARIABLEWHITELIST_ENABLE

public static final String DFS_DATATRANSFER_CLIENT_VARIABLEWHITELIST_ENABLE
Enables/Disables variable whitelist

See Also:
Constant Field Values

DFS_DATATRANSFER_CLIENT_VARIABLEWHITELIST_FILE

public static final String DFS_DATATRANSFER_CLIENT_VARIABLEWHITELIST_FILE
Path to the file to containing subnets and ip addresses to form variable whitelist.

See Also:
Constant Field Values

DFS_DATATRANSFER_CLIENT_VARIABLEWHITELIST_CACHE_SECS

public static final String DFS_DATATRANSFER_CLIENT_VARIABLEWHITELIST_CACHE_SECS
time in seconds by which the variable whitelist file is checked for updates

See Also:
Constant Field Values
Constructor Detail

WhitelistBasedTrustedChannelResolver

public WhitelistBasedTrustedChannelResolver()
Method Detail

setConf

public void setConf(org.apache.hadoop.conf.Configuration conf)
Specified by:
setConf in interface org.apache.hadoop.conf.Configurable
Overrides:
setConf in class TrustedChannelResolver

isTrusted

public boolean isTrusted()
Description copied from class: TrustedChannelResolver
Return boolean value indicating whether a channel is trusted or not from a client's perspective.

Overrides:
isTrusted in class TrustedChannelResolver
Returns:
true if the channel is trusted and false otherwise.

isTrusted

public boolean isTrusted(InetAddress clientAddress)
Description copied from class: TrustedChannelResolver
Identify boolean value indicating whether a channel is trusted or not.

Overrides:
isTrusted in class TrustedChannelResolver
Parameters:
clientAddress - address of the peer
Returns:
true if the channel is trusted and false otherwise.


Copyright © 2014 Apache Software Foundation. All Rights Reserved.