equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
21 * questions. |
21 * questions. |
22 */ |
22 */ |
23 |
23 |
24 /* |
24 /* |
25 * @test |
25 * @test |
26 * @bug 8001326 |
26 * @bug 8001326 8194486 |
27 * @run main/othervm NoneReplayCacheTest |
|
28 * @summary the replaycache type none cannot stop an authenticator replay, |
27 * @summary the replaycache type none cannot stop an authenticator replay, |
29 * but it can stop a message replay when s.s.k.acceptor.subkey is true. |
28 * but it can stop a message replay when s.s.k.acceptor.subkey is true. |
30 * You should not really use none in production environment. This test merely |
29 * You should not really use none in production environment. This test merely |
31 * shows there can be other protections when replay cache is not working fine. |
30 * shows there can be other protections when replay cache is not working fine. |
|
31 * @library /test/lib |
|
32 * @run main jdk.test.lib.FileInstaller TestHosts TestHosts |
|
33 * @run main/othervm -Djdk.net.hosts.file=TestHosts NoneReplayCacheTest |
32 */ |
34 */ |
33 |
35 |
34 import org.ietf.jgss.GSSException; |
36 import org.ietf.jgss.GSSException; |
35 import sun.security.jgss.GSSUtil; |
37 import sun.security.jgss.GSSUtil; |
36 |
38 |