Examples of SignCertificateResponse


Examples of org.platformlayer.auth.model.SignCertificateResponse

    } catch (OpsException e) {
      log.warn("Error while signing CSR", e);
      throwInternalError();
    }

    SignCertificateResponse response = new SignCertificateResponse();

    response.certificates = Lists.newArrayList();
    for (X509Certificate cert : certificates) {
      response.certificates.add(CertificateUtils.toPem(cert));
    }
View Full Code Here

Examples of org.platformlayer.auth.v1.SignCertificateResponse

    request.setProject(projectKey);
    request.setCsr(csr);
    request.setProjectSecret(FathomdbCrypto.serialize(projectSecret));

    try {
      SignCertificateResponse response = doSimpleXmlRequest(HttpMethod.POST, url, request,
          SignCertificateResponse.class);

      List<X509Certificate> certificates = Lists.newArrayList();
      for (String cert : response.getCertificates()) {
        certificates.addAll(CertificateUtils.fromPem(cert));
      }

      return certificates;
    } catch (RestClientException e) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.