jdk/test/sun/security/krb5/auto/BadKdc2.java
changeset 23339 d66b18f52418
parent 14342 8435a30053c1
child 30820 0d4717a011d3
equal deleted inserted replaced
23338:0a84d339822a 23339:d66b18f52418
    33 
    33 
    34 public class BadKdc2 {
    34 public class BadKdc2 {
    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 
       
    39         // 1 sec is too short.
       
    40         BadKdc.setRatio(3.0f);
       
    41 
       
    42         Security.setProperty(
       
    43                 "krb5.kdc.bad.policy", "tryLess:2," + BadKdc.toReal(1000));
    39         BadKdc.go(
    44         BadKdc.go(
    40                 "121212222222(32){1,2}11112121(32){1,2}", // 1 2
    45                 "121212222222(32){1,2}11112121(32){1,2}", // 1 2
    41                 "11112121(32){1,2}11112121(32){1,2}", // 1 2
    46                 "11112121(32){1,2}11112121(32){1,2}", // 1 2
    42                 // refresh
    47                 // refresh
    43                 "121212222222(32){1,2}11112121(32){1,2}", // 1 2
    48                 "121212222222(32){1,2}11112121(32){1,2}", // 1 2