List of usage examples for org.apache.hadoop.security.authentication.server AuthenticationFilter CONFIG_PREFIX
String CONFIG_PREFIX
To view the source code for org.apache.hadoop.security.authentication.server AuthenticationFilter CONFIG_PREFIX.
Click Source Link
From source file:org.apache.sentry.api.service.thrift.SentryWebServer.java
License:Apache License
private static Map<String, String> loadWebAuthenticationConf(Configuration conf) { Map<String, String> prop = new HashMap<String, String>(); prop.put(AuthenticationFilter.CONFIG_PREFIX, ServerConfig.SENTRY_WEB_SECURITY_PREFIX); String allowUsers = conf.get(ServerConfig.SENTRY_WEB_SECURITY_ALLOW_CONNECT_USERS); if (allowUsers == null || allowUsers.equals("")) { allowUsers = conf.get(ServerConfig.ALLOW_CONNECT); conf.set(ServerConfig.SENTRY_WEB_SECURITY_ALLOW_CONNECT_USERS, allowUsers); }/*from ww w . j a v a2 s. co m*/ validateConf(conf); for (Map.Entry<String, String> entry : conf) { String name = entry.getKey(); if (name.startsWith(ServerConfig.SENTRY_WEB_SECURITY_PREFIX)) { String value = conf.get(name); prop.put(name, value); } } return prop; }