Package org.platformlayer.crypto

Examples of org.platformlayer.crypto.CertificateReader


  public Certificate[] loadCertificateChain(String certPath) throws IOException, OpsException {
    if (getOptions().isServerMode()) {
      throw new IllegalArgumentException("Files not supported in server mode");
    }

    CertificateReader reader = new CertificateReader();
    Certificate[] certificates = reader.parse(new File(certPath));
    return certificates;
  }
View Full Code Here


    if (issuerCertData == null) {
      log.warn("Resource not found: " + resource);
      throw new OpsException("Cannot find certificate for: " + issuer);
    }

    CertificateReader reader = new CertificateReader();
    Certificate[] issuerCerts = reader.parse(issuerCertData);

    if (issuerCerts == null || issuerCerts.length == 0) {
      throw new OpsException("Error reading certificate: " + issuer);
    }
View Full Code Here

TOP

Related Classes of org.platformlayer.crypto.CertificateReader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.