mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

lutoff
11.50.2007 58d668e476b45ccdac9fce119f398d151d292ebe
opendj-sdk/opends/src/ads/org/opends/admin/ads/util/ApplicationTrustManager.java
@@ -163,7 +163,10 @@
      lastRefusedChain = chain;
      lastRefusedAuthType = authType;
      lastRefusedCause = Cause.NOT_TRUSTED;
      throw ce;
      OpendsCertificationException e = new OpendsCertificationException(
          chain);
      e.initCause(ce);
      throw e;
    }
    if (!explicitlyAccepted)
@@ -177,7 +180,10 @@
        lastRefusedChain = chain;
        lastRefusedAuthType = authType;
        lastRefusedCause = Cause.HOST_NAME_MISMATCH;
        throw ce;
        OpendsCertificationException e = new OpendsCertificationException(
            chain);
        e.initCause(ce);
        throw e;
      }
    }
  }
@@ -214,7 +220,9 @@
      lastRefusedChain = chain;
      lastRefusedAuthType = authType;
      lastRefusedCause = Cause.NOT_TRUSTED;
      throw ce;
      OpendsCertificationException e = new OpendsCertificationException(chain);
      e.initCause(ce);
      throw e;
    }
    if (!explicitlyAccepted)
@@ -228,7 +236,10 @@
        lastRefusedChain = chain;
        lastRefusedAuthType = authType;
        lastRefusedCause = Cause.HOST_NAME_MISMATCH;
        throw ce;
        OpendsCertificationException e = new OpendsCertificationException(
            chain);
        e.initCause(ce);
        throw e;
      }
    }
  }
@@ -334,8 +345,8 @@
    }
    if (!found)
    {
      throw new CertificateException(
          "Certificate not in list of accepted certificates");
      throw new OpendsCertificationException(
          "Certificate not in list of accepted certificates", chain);
    }
  }
@@ -368,8 +379,10 @@
      if (!matches)
      {
        throw new CertificateException("Hostname mismatch between host name "+
            host+" and subject DN: "+chain[0].getSubjectX500Principal());
        throw new OpendsCertificationException(
            "Hostname mismatch between host name " + host
                + " and subject DN: " + chain[0].getSubjectX500Principal(),
            chain);
      }
    }
  }