@Override public void setConf(Configuration conf) { super.setConf(conf); portPropMapping = new HashMap<>(); Collection<String> portStrings = conf.getTrimmedStringCollection(INGRESS_PORT_SASL_CONFIGURED_PORTS); for (String portString : portStrings) { int port = Integer.parseInt(portString); String configKey = INGRESS_PORT_SASL_PROP_PREFIX + "." + portString; Map<String, String> props = getSaslProperties(conf, configKey, SaslRpcServer.QualityOfProtection.PRIVACY); portPropMapping.put(port, props); } LOG.debug("Configured with port to QOP mapping as:" + portPropMapping); }
@Override public void setConf(Configuration conf) { super.setConf(conf); String fixedFile = conf.get(HADOOP_SECURITY_SASL_FIXEDWHITELIST_FILE, FIXEDWHITELIST_DEFAULT_LOCATION); String variableFile = null; long expiryTime = 0; if (conf.getBoolean(HADOOP_SECURITY_SASL_VARIABLEWHITELIST_ENABLE, false)) { variableFile = conf.get(HADOOP_SECURITY_SASL_VARIABLEWHITELIST_FILE, VARIABLEWHITELIST_DEFAULT_LOCATION); expiryTime = conf.getLong(HADOOP_SECURITY_SASL_VARIABLEWHITELIST_CACHE_SECS,3600) * 1000; } whiteList = new CombinedIPWhiteList(fixedFile,variableFile,expiryTime); this.saslProps = getSaslProperties(conf); }
@Override public void setConf(Configuration conf) { super.setConf(conf); String fixedFile = conf.get(HADOOP_SECURITY_SASL_FIXEDWHITELIST_FILE, FIXEDWHITELIST_DEFAULT_LOCATION); String variableFile = null; long expiryTime = 0; if (conf.getBoolean(HADOOP_SECURITY_SASL_VARIABLEWHITELIST_ENABLE, false)) { variableFile = conf.get(HADOOP_SECURITY_SASL_VARIABLEWHITELIST_FILE, VARIABLEWHITELIST_DEFAULT_LOCATION); expiryTime = conf.getLong(HADOOP_SECURITY_SASL_VARIABLEWHITELIST_CACHE_SECS,3600) * 1000; } whiteList = new CombinedIPWhiteList(fixedFile,variableFile,expiryTime); this.saslProps = getSaslProperties(conf); }
@Override public void setConf(Configuration conf) { super.setConf(conf); String fixedFile = conf.get(HADOOP_SECURITY_SASL_FIXEDWHITELIST_FILE, FIXEDWHITELIST_DEFAULT_LOCATION); String variableFile = null; long expiryTime = 0; if (conf.getBoolean(HADOOP_SECURITY_SASL_VARIABLEWHITELIST_ENABLE, false)) { variableFile = conf.get(HADOOP_SECURITY_SASL_VARIABLEWHITELIST_FILE, VARIABLEWHITELIST_DEFAULT_LOCATION); expiryTime = conf.getLong(HADOOP_SECURITY_SASL_VARIABLEWHITELIST_CACHE_SECS,3600) * 1000; } whiteList = new CombinedIPWhiteList(fixedFile,variableFile,expiryTime); this.saslProps = getSaslProperties(conf); }
@Override public void setConf(Configuration conf) { super.setConf(conf); String fixedFile = conf.get(HADOOP_SECURITY_SASL_FIXEDWHITELIST_FILE, FIXEDWHITELIST_DEFAULT_LOCATION); String variableFile = null; long expiryTime = 0; if (conf.getBoolean(HADOOP_SECURITY_SASL_VARIABLEWHITELIST_ENABLE, false)) { variableFile = conf.get(HADOOP_SECURITY_SASL_VARIABLEWHITELIST_FILE, VARIABLEWHITELIST_DEFAULT_LOCATION); expiryTime = conf.getLong(HADOOP_SECURITY_SASL_VARIABLEWHITELIST_CACHE_SECS,3600) * 1000; } whiteList = new CombinedIPWhiteList(fixedFile,variableFile,expiryTime); this.saslProps = getSaslProperties(conf); }
@Override public void setConf(Configuration conf) { super.setConf(conf); String fixedFile = conf.get(HADOOP_SECURITY_SASL_FIXEDWHITELIST_FILE, FIXEDWHITELIST_DEFAULT_LOCATION); String variableFile = null; long expiryTime = 0; if (conf.getBoolean(HADOOP_SECURITY_SASL_VARIABLEWHITELIST_ENABLE, false)) { variableFile = conf.get(HADOOP_SECURITY_SASL_VARIABLEWHITELIST_FILE, VARIABLEWHITELIST_DEFAULT_LOCATION); expiryTime = conf.getLong(HADOOP_SECURITY_SASL_VARIABLEWHITELIST_CACHE_SECS,3600) * 1000; } whiteList = new CombinedIPWhiteList(fixedFile,variableFile,expiryTime); this.saslProps = getSaslProperties(conf); }