Package org.jscep.transport

Examples of org.jscep.transport.HttpGetTransport


      throws ClientException {
    LOGGER.debug("Retrieving current CA certificate");
    // NON-TRANSACTIONAL
    // CA and RA public key distribution
    final GetCaCertRequest req = new GetCaCertRequest(profile);
    final Transport trans = new HttpGetTransport(url);

    CertStore store;
    try {
      store = trans.sendRequest(req, new GetCaCertResponseHandler());
    } catch (TransportException e) {
      throw new ClientException(e);
    }
    CertStoreInspector certs = CertStoreInspector.getInstance(store);
    verifyCA(certs.getIssuer());
View Full Code Here


    final CertStore store = getCaCertificate(profile);
    // The CA or RA
    CertStoreInspector certs = CertStoreInspector.getInstance(store);
    final X509Certificate signer = certs.getSigner();

    final Transport trans = new HttpGetTransport(url);
    final GetNextCaCertRequest req = new GetNextCaCertRequest(profile);

    try {
      return trans.sendRequest(req, new GetNextCaCertResponseHandler(
          signer));
    } catch (TransportException e) {
      throw new ClientException(e);
    }
  }
View Full Code Here

   */
  private Transport createTransport(final String profile) {
    if (getCaCapabilities(profile).isPostSupported()) {
      return new HttpPostTransport(url);
    } else {
      return new HttpGetTransport(url);
    }
  }
View Full Code Here

TOP

Related Classes of org.jscep.transport.HttpGetTransport

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.