jdk/test/sun/security/krb5/auto/BadKdc2.java
changeset 13362 ff59dd695fc0
parent 8396 587947f96036
child 14342 8435a30053c1
equal deleted inserted replaced
13361:bda5c2354fc6 13362:ff59dd695fc0
    35 
    35 
    36     public static void main(String[] args)
    36     public static void main(String[] args)
    37             throws Exception {
    37             throws Exception {
    38         Security.setProperty("krb5.kdc.bad.policy", "tryLess:2,1000");
    38         Security.setProperty("krb5.kdc.bad.policy", "tryLess:2,1000");
    39         BadKdc.go(
    39         BadKdc.go(
    40                 new int[]{1,2,1,2,1,2,2,2,2,2,2,2,3,2,1,1,1,1,2,1,2,1,3,2}, // 1, 2
    40                 "121212222222(32){1,2}11112121(32){1,2}", // 1 2
    41                 new int[]{1,1,1,1,2,1,2,1,3,2,1,1,1,1,2,1,2,1,3,2}, // 1, 2
    41                 "11112121(32){1,2}11112121(32){1,2}", // 1 2
    42                 // refresh
    42                 // refresh
    43                 new int[]{1,2,1,2,1,2,2,2,2,2,2,2,3,2,1,1,1,1,2,1,2,1,3,2}, // 1, 2
    43                 "121212222222(32){1,2}11112121(32){1,2}", // 1 2
    44                 // k3 off, k2 on
    44                 // k3 off k2 on
    45                 new int[]{1,1,1,1,2,1,1,1,1,1,2,2}, // 1
    45                 "1111(21){1,2}1111(22){1,2}", // 1
    46                 // k1 on
    46                 // k1 on
    47                 new int[]{1,1,1,2}  // empty
    47                 "(11){1,2}(12){1,2}"  // empty
    48         );
    48         );
    49     }
    49     }
    50 }
    50 }