code: public static Configuration GetConfiguration(Map storm_conf) {
          Configuration login_conf = null;
  
          // find login file configuration from Storm configuration
          String loginConfigurationFile = (String) storm_conf.get("java.security.auth.login.config");
          if ((loginConfigurationFile != null) && (loginConfigurationFile.length() > 0)) {
              File config_file = new File(loginConfigurationFile);
              if (!config_file.canRead()) {
                  throw new RuntimeException("File " + loginConfigurationFile + " cannot be read.");
              }
              try {
                  URI config_uri = config_file.toURI();
                  login_conf = Configuration.getInstance("JavaLoginConfig", new URIParameter(config_uri));
              } catch (Exception ex) {
                  throw new RuntimeException(ex);
              }
          }
  
          return login_conf;
      }
docs: Construct a JAAS configuration object per storm configuration file
  
  @param storm_conf Storm configuration
  @return JAAS configuration object