Package org.jscep.transport.response

Examples of org.jscep.transport.response.GetCaCertResponseHandler


  private X509Certificate getRecipient() throws Exception {
    GetCaCertRequest req = new GetCaCertRequest();
    Transport transport = new HttpGetTransport(getURL());

    CertStore store = transport.sendRequest(req,
        new GetCaCertResponseHandler());
    Collection<? extends Certificate> certs = store.getCertificates(null);

    if (certs.size() > 0) {
      return (X509Certificate) certs.iterator().next();
    } else {
View Full Code Here


    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

TOP

Related Classes of org.jscep.transport.response.GetCaCertResponseHandler

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.