public static void initStatic() { String temp = null; Config cfg = null; try { cfg = Config.getInstance(); temp = cfg.get("libdefaults", "default_checksum"); if (temp != null) { CKSUMTYPE_DEFAULT = Config.getType(temp); } else { /* * If the default checksum is not * specified in the configuration we * set it to RSA_MD5. We follow the MIT and * SEAM implementation. */ CKSUMTYPE_DEFAULT = CKSUMTYPE_RSA_MD5; } } catch (Exception exc) { if (DEBUG) { System.out.println( "Exception in getting default checksum " + "value from the configuration " + "Setting default checksum to be RSA-MD5"); exc.printStackTrace(); } CKSUMTYPE_DEFAULT = CKSUMTYPE_RSA_MD5; } try { temp = cfg.get("libdefaults", "safe_checksum_type"); if (temp != null) { SAFECKSUMTYPE_DEFAULT = Config.getType(temp); } else { SAFECKSUMTYPE_DEFAULT = CKSUMTYPE_RSA_MD5_DES; } } catch (Exception exc) { if (DEBUG) { System.out.println( "Exception in getting safe default " + "checksum value " + "from the configuration Setting " + "safe default checksum to be RSA-MD5"); exc.printStackTrace(); } SAFECKSUMTYPE_DEFAULT = CKSUMTYPE_RSA_MD5_DES; } }