jdk/test/sun/security/krb5/auto/BasicKrb5Test.java
changeset 1456 1d3c6724de2f
parent 1454 d9b6f1de641f
child 5506 202f599c92aa
equal deleted inserted replaced
1455:79b6d4798fa3 1456:1d3c6724de2f
    47 
    47 
    48         String etype = null;
    48         String etype = null;
    49         if (args.length > 0) {
    49         if (args.length > 0) {
    50             etype = args[0];
    50             etype = args[0];
    51         }
    51         }
       
    52 
       
    53         // Creates and starts the KDC. This line must be put ahead of etype check
       
    54         // since the check needs a krb5.conf.
       
    55         new OneKDC(etype).writeJAASConf();
       
    56 
    52         System.out.println("Testing etype " + etype);
    57         System.out.println("Testing etype " + etype);
    53         if (etype != null && !EType.isSupported(Config.getInstance().getType(etype))) {
    58         if (etype != null && !EType.isSupported(Config.getInstance().getType(etype))) {
    54             System.out.println("Not supported.");
    59             System.out.println("Not supported.");
    55             System.exit(0);
    60             System.exit(0);
    56         }
    61         }
    57 
    62 
    58         // Creates and starts the KDC
       
    59         new OneKDC(etype).writeJAASConf();
       
    60         new BasicKrb5Test().go(OneKDC.SERVER, OneKDC.BACKEND);
    63         new BasicKrb5Test().go(OneKDC.SERVER, OneKDC.BACKEND);
    61     }
    64     }
    62 
    65 
    63     void go(final String server, final String backend) throws Exception {
    66     void go(final String server, final String backend) throws Exception {
    64         Context c, s, s2, b;
    67         Context c, s, s2, b;