Package org.jscep.transaction

Examples of org.jscep.transaction.EnrollmentTransaction.send()


    Transport transport = new HttpGetTransport(getURL());
    Transaction t = new EnrollmentTransaction(transport, encoder, decoder,
        csr);

    State s = t.send();
    assertThat(s, is(State.CERT_ISSUED));
  }

  @Test
  public void testEnrollmentPost() throws Exception {
View Full Code Here


    Transport transport = new HttpGetTransport(getURL());
    Transaction t = new EnrollmentTransaction(transport, encoder, decoder,
        csr);

    State s = t.send();
    assertThat(s, is(State.CERT_ISSUED));
  }

  @Test
  public void testEnrollmentWithPoll() throws Exception {
View Full Code Here

        envDecoder);

    Transport transport = new HttpGetTransport(getURL());
    EnrollmentTransaction trans = new EnrollmentTransaction(transport,
        encoder, decoder, csr);
    State state = trans.send();
    assertThat(state, is(State.CERT_REQ_PENDING));

    IssuerAndSubject ias = new IssuerAndSubject(X500Utils.toX500Name(sender
        .getIssuerX500Principal()), pollName);
    trans = new EnrollmentTransaction(transport, encoder, decoder, ias,
View Full Code Here

    IssuerAndSubject ias = new IssuerAndSubject(X500Utils.toX500Name(sender
        .getIssuerX500Principal()), pollName);
    trans = new EnrollmentTransaction(transport, encoder, decoder, ias,
        trans.getId());
    state = trans.send();
    assertThat(state, is(State.CERT_REQ_PENDING));
  }

  private PKCS10CertificationRequest getCsr(X500Name subject,
      PublicKey pubKey, PrivateKey priKey, char[] password)
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.