Here you can find the source of get(Configuration configuration, String section, String key)
public static String get(Configuration configuration, String section, String key) throws IOException
//package com.java2s; //License from project: Apache License import javax.security.auth.login.Configuration; import javax.security.auth.login.AppConfigurationEntry; import java.io.IOException; public class Main { public static String get(Configuration configuration, String section, String key) throws IOException { AppConfigurationEntry configurationEntries[] = configuration .getAppConfigurationEntry(section); if (configurationEntries == null) { String errorMessage = "Could not find a '" + section + "' entry in this configuration."; throw new IOException(errorMessage); }/*from www.j av a 2 s. c om*/ for (AppConfigurationEntry entry : configurationEntries) { Object val = entry.getOptions().get(key); if (val != null) return (String) val; } return null; } }