use of org.apache.storm.security.auth.IAutoCredentials in project storm by apache.
the class StormSubmitter method populateCredentials.
private static Map<String, String> populateCredentials(Map conf, Map<String, String> creds) {
Map<String, String> ret = new HashMap<>();
for (IAutoCredentials autoCred : AuthUtils.GetAutoCredentials(conf)) {
LOG.info("Running " + autoCred);
autoCred.populateCredentials(ret);
}
if (creds != null) {
ret.putAll(creds);
}
return ret;
}
Aggregations