Examples of GetCaCertRequest


Examples of org.jscep.transport.request.GetCaCertRequest

  private URL getURL() throws MalformedURLException {
    return new URL("http", "localhost", port, PATH);
  }

  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);
View Full Code Here

Examples of org.jscep.transport.request.GetCaCertRequest

    private String caIdentifier;

    @Before
    public void setUp() {
  caIdentifier = "id";
  fixture = new GetCaCertRequest(caIdentifier);
    }
View Full Code Here

Examples of org.jscep.transport.request.GetCaCertRequest

  fixture = new GetCaCertRequest(caIdentifier);
    }

    @Test
    public void testNullConstructor() {
  fixture = new GetCaCertRequest();
  Assert.assertEquals("", fixture.getMessage());
    }
View Full Code Here

Examples of org.jscep.transport.request.GetCaCertRequest

  public CertStore getCaCertificate(final String profile)
      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());
View Full Code Here

Examples of org.jscep.transport.request.GetCaCertRequest

import org.junit.Test;

public class HttpPostTransportTest extends AbstractTransportTest {
    @Test(expected = IllegalArgumentException.class)
    public void testGetCACert() throws Exception {
  transport.sendRequest(new GetCaCertRequest(), null);
    }
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.