Search in sources :

Example 1 with IAutoCredentials

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;
}
Also used : HashMap(java.util.HashMap) IAutoCredentials(org.apache.storm.security.auth.IAutoCredentials)

Aggregations

HashMap (java.util.HashMap)1 IAutoCredentials (org.apache.storm.security.auth.IAutoCredentials)1