< prev index next >

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

Print this page
rev 15878 : 8168518: rcache interop with krb5-1.15

*** 45,63 **** System.setProperty("java.security.krb5.conf", "nothing"); int count = Integer.parseInt(args[0]); ReplayCache cache = ReplayCache.getInstance("dfl:./"); AuthTimeWithHash a1 = ! new AuthTimeWithHash(client, server, time(-400), 0, hash("1")); AuthTimeWithHash a2 = ! new AuthTimeWithHash(client, server, time(0), 0, hash("4")); KerberosTime now = new KerberosTime(time(0)*1000L); KerberosTime then = new KerberosTime(time(-300)*1000L); // Once upon a time, we added a lot of events for (int i=0; i<count; i++) { ! a1 = new AuthTimeWithHash(client, server, time(-400), 0, hash("")); cache.checkAndStore(then, a1); } // Now, we add a new one. If some conditions hold, the old ones // will be expunged. --- 45,63 ---- System.setProperty("java.security.krb5.conf", "nothing"); int count = Integer.parseInt(args[0]); ReplayCache cache = ReplayCache.getInstance("dfl:./"); AuthTimeWithHash a1 = ! new AuthTimeWithHash(client, server, time(-400), 0, "HASH", hash("1")); AuthTimeWithHash a2 = ! new AuthTimeWithHash(client, server, time(0), 0, "HASH", hash("4")); KerberosTime now = new KerberosTime(time(0)*1000L); KerberosTime then = new KerberosTime(time(-300)*1000L); // Once upon a time, we added a lot of events for (int i=0; i<count; i++) { ! a1 = new AuthTimeWithHash(client, server, time(-400), 0, "HASH", hash("")); cache.checkAndStore(then, a1); } // Now, we add a new one. If some conditions hold, the old ones // will be expunged.
< prev index next >