< prev index next >

test/sun/security/krb5/auto/OneKDC.java

Print this page
rev 12523 : 8087144: sun/security/krb5/auto/MaxRetries.java fails with Retry count is -1 less
8153146: sun/security/krb5/auto/MaxRetries.java failed with timeout
Reviewed-by: xuelei

*** 93,103 **** * Writes a JAAS login config file, which contains as many as useful * entries, including JGSS style initiator/acceptor and normal JAAS * entries with names using existing OneKDC principals. * @throws java.lang.Exception if anything goes wrong */ ! public void writeJAASConf() throws IOException { System.setProperty("java.security.auth.login.config", JAAS_CONF); File f = new File(JAAS_CONF); FileOutputStream fos = new FileOutputStream(f); fos.write(( "com.sun.security.jgss.krb5.initiate {\n" + --- 93,103 ---- * Writes a JAAS login config file, which contains as many as useful * entries, including JGSS style initiator/acceptor and normal JAAS * entries with names using existing OneKDC principals. * @throws java.lang.Exception if anything goes wrong */ ! public OneKDC writeJAASConf() throws IOException { System.setProperty("java.security.auth.login.config", JAAS_CONF); File f = new File(JAAS_CONF); FileOutputStream fos = new FileOutputStream(f); fos.write(( "com.sun.security.jgss.krb5.initiate {\n" +
*** 121,130 **** --- 121,131 ---- " useKeyTab=true\n" + " storeKey=true\n" + " isInitiator=false;\n};\n" ).getBytes()); fos.close(); + return this; } /** * The default callback handler for JAAS login. Note that this handler is * hard coded to provide only info for USER1. If you need to provide info
< prev index next >