10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 /*
25 * @test
26 * @bug 8044500
27 * @summary Add kinit options and krb5.conf flags that allow users to
28 * obtain renewable tickets and specify ticket lifetimes
29 * @library ../../../../java/security/testlibrary/
30 * @compile -XDignore.symbol.file Renewal.java
31 * @run main/othervm Renewal
32 */
33
34 import sun.security.jgss.GSSUtil;
35 import sun.security.krb5.Config;
36 import sun.security.krb5.internal.ccache.Credentials;
37 import sun.security.krb5.internal.ccache.FileCredentialsCache;
38
39 import javax.security.auth.kerberos.KerberosTicket;
40 import java.util.Date;
41 import java.util.Random;
42 import java.util.Set;
43
44 // The basic krb5 test skeleton you can copy from
45 public class Renewal {
46
47 static OneKDC kdc;
48 static String clazz = "sun.security.krb5.internal.tools.Kinit";
49
50 public static void main(String[] args) throws Exception {
51
52 kdc = new OneKDC(null);
53 kdc.writeJAASConf();
54 kdc.setOption(KDC.Option.PREAUTH_REQUIRED, false);
|
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 /*
25 * @test
26 * @bug 8044500
27 * @summary Add kinit options and krb5.conf flags that allow users to
28 * obtain renewable tickets and specify ticket lifetimes
29 * @library ../../../../java/security/testlibrary/
30 * @modules java.base/sun.net.spi.nameservice
31 * java.base/sun.security.util
32 * java.security.jgss/sun.security.krb5
33 * java.security.jgss/sun.security.krb5.internal
34 * java.security.jgss/sun.security.krb5.internal.ccache
35 * java.security.jgss/sun.security.krb5.internal.crypto
36 * java.security.jgss/sun.security.krb5.internal.ktab
37 * @compile -XDignore.symbol.file Renewal.java
38 * @run main/othervm Renewal
39 */
40
41 import sun.security.krb5.Config;
42 import sun.security.krb5.internal.ccache.Credentials;
43 import sun.security.krb5.internal.ccache.FileCredentialsCache;
44
45 import javax.security.auth.kerberos.KerberosTicket;
46 import java.util.Date;
47 import java.util.Random;
48 import java.util.Set;
49
50 // The basic krb5 test skeleton you can copy from
51 public class Renewal {
52
53 static OneKDC kdc;
54 static String clazz = "sun.security.krb5.internal.tools.Kinit";
55
56 public static void main(String[] args) throws Exception {
57
58 kdc = new OneKDC(null);
59 kdc.writeJAASConf();
60 kdc.setOption(KDC.Option.PREAUTH_REQUIRED, false);
|