jdk/src/share/classes/sun/security/krb5/internal/crypto/EType.java
changeset 23716 33cc4db6209b
parent 23010 6dadb192ad81
child 24969 afa6934dd8e8
equal deleted inserted replaced
23715:54ae9dd9df73 23716:33cc4db6209b
    56 
    56 
    57     public static void initStatic() {
    57     public static void initStatic() {
    58         boolean allowed = false;
    58         boolean allowed = false;
    59         try {
    59         try {
    60             Config cfg = Config.getInstance();
    60             Config cfg = Config.getInstance();
    61             String temp = cfg.get("libdefaults", "allow_weak_crypto");
    61             allowed = cfg.getBooleanObject("libdefaults", "allow_weak_crypto")
    62             if (temp != null && temp.equals("true")) allowed = true;
    62                     == Boolean.TRUE;
    63         } catch (Exception exc) {
    63         } catch (Exception exc) {
    64             if (DEBUG) {
    64             if (DEBUG) {
    65                 System.out.println ("Exception in getting allow_weak_crypto, " +
    65                 System.out.println ("Exception in getting allow_weak_crypto, " +
    66                                     "using default value " +
    66                                     "using default value " +
    67                                     exc.getMessage());
    67                                     exc.getMessage());