Code example for HashMap

Methods: put

0
        this.debug = debug;
    } 
 
    @Override 
    public AppConfigurationEntry[] getAppConfigurationEntry(String s) {
        final HashMap<String, String> options = new HashMap<String, String>();
        options.put("client", "true");
        options.put("useTicketCache", "false");
        options.put("useKeyTab", "false");
        options.put("doNotPrompt", "false");
        options.put("refreshKrb5Config", "true");
        if (debug) {
            options.put("debug", "true");
        } 
        return new AppConfigurationEntry[] { new AppConfigurationEntry("com.sun.security.auth.module.Krb5LoginModule", 
            AppConfigurationEntry.LoginModuleControlFlag.REQUIRED, options) };
    } 
 
}