jdk/test/javax/security/auth/kerberos/KerberosTixDateTest.java
changeset 23735 34d83df87817
parent 23357 7225e28e91dd
child 35999 b6bf26e04451
equal deleted inserted replaced
23734:439905b27f94 23735:34d83df87817
    23 
    23 
    24 /*
    24 /*
    25  * @test
    25  * @test
    26  * @bug 6659990
    26  * @bug 6659990
    27  * @summary test the immutability of the Date fields in KerberosTicket class.
    27  * @summary test the immutability of the Date fields in KerberosTicket class.
    28  * @run main/manual KerberosTixDateTest
       
    29  */
    28  */
    30 
    29 
    31 /*
    30 /*
    32  * Must setup KDC and Kerberos configuration file
    31  * Must setup KDC and Kerberos configuration file
    33  */
    32  */
    62 "c2VjdXJpdHkuYXV0aC5rZXJiZXJvcy5LZXlJbXBskoOG6DyvS9cDAAB4cHVxAH4ACAAAABUwE6AD" +
    61 "c2VjdXJpdHkuYXV0aC5rZXJiZXJvcy5LZXlJbXBskoOG6DyvS9cDAAB4cHVxAH4ACAAAABUwE6AD" +
    63         "AgEBoQwECnNlc3Npb25LZXl4cQB+AAs=";
    62         "AgEBoQwECnNlc3Npb25LZXl4cQB+AAs=";
    64 
    63 
    65     public static void main(String[] args) throws Exception {
    64     public static void main(String[] args) throws Exception {
    66         byte[] asn1Bytes = "asn1".getBytes();
    65         byte[] asn1Bytes = "asn1".getBytes();
    67         KerberosPrincipal client = new KerberosPrincipal("client");
    66         KerberosPrincipal client = new KerberosPrincipal("client@JLABS.SFBAY.SUN.COM");
    68         KerberosPrincipal server = new KerberosPrincipal("server");
    67         KerberosPrincipal server = new KerberosPrincipal("server@JLABS.SFBAY.SUN.COM");
    69         byte[] keyBytes = "sessionKey".getBytes();
    68         byte[] keyBytes = "sessionKey".getBytes();
    70         long originalTime = 12345678L;
    69         long originalTime = 12345678L;
    71         Date inDate = new Date(originalTime);
    70         Date inDate = new Date(originalTime);
    72         boolean[] flags = new boolean[9];
    71         boolean[] flags = new boolean[9];
    73         flags[8] = true; // renewable
    72         flags[8] = true; // renewable