예제 #1
0
  public CSecurityTLS(boolean _anon) {
    anon = _anon;
    session = null;

    setDefaults();
    cafile = x509ca.getData();
    crlfile = x509crl.getData();
  }
예제 #2
0
 public static void setDefaults() {
   if (new File(getDefaultCA()).exists()) x509ca.setDefaultStr(getDefaultCA());
   if (new File(getDefaultCRL()).exists()) x509crl.setDefaultStr(getDefaultCRL());
 }