< prev index next >

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

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

*** 46,58 **** static final Random rand = new Random(); public static void main(String[] args) throws Exception { AuthTimeWithHash a1 = new AuthTimeWithHash(client, server, time(0), 0, ! "1111111111111111"); AuthTimeWithHash a2 = new AuthTimeWithHash(client, server, time(0), 0, ! "2222222222222222"); KerberosTime now = new KerberosTime(time(0)*1000L); // When all new styles, must exact match ReplayCache cache = ReplayCache.getInstance("dfl:./c1"); cache.checkAndStore(now, a1); --- 46,58 ---- static final Random rand = new Random(); public static void main(String[] args) throws Exception { AuthTimeWithHash a1 = new AuthTimeWithHash(client, server, time(0), 0, ! "HASH", "1111111111111111"); AuthTimeWithHash a2 = new AuthTimeWithHash(client, server, time(0), 0, ! "HASH", "2222222222222222"); KerberosTime now = new KerberosTime(time(0)*1000L); // When all new styles, must exact match ReplayCache cache = ReplayCache.getInstance("dfl:./c1"); cache.checkAndStore(now, a1);
< prev index next >