Examples of EnrollmentTransaction


Examples of org.jscep.transaction.EnrollmentTransaction

        priKey);
    PkiMessageDecoder decoder = new PkiMessageDecoder(getRecipient(),
        envDecoder);

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

    State s = t.send();
    assertThat(s, is(State.CERT_ISSUED));
  }
View Full Code Here

Examples of org.jscep.transaction.EnrollmentTransaction

        priKey);
    PkiMessageDecoder decoder = new PkiMessageDecoder(getRecipient(),
        envDecoder);

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

    State s = t.send();
    assertThat(s, is(State.CERT_ISSUED));
  }
View Full Code Here

Examples of org.jscep.transaction.EnrollmentTransaction

        priKey);
    PkiMessageDecoder decoder = new PkiMessageDecoder(getRecipient(),
        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,
        trans.getId());
    state = trans.send();
    assertThat(state, is(State.CERT_REQ_PENDING));
  }
View Full Code Here

Examples of org.jscep.transaction.EnrollmentTransaction

    // TRANSACTIONAL
    // Certificate enrollment
    final Transport transport = createTransport(profile);
    PkiMessageEncoder encoder = getEncoder(identity, key, profile);
    PkiMessageDecoder decoder = getDecoder(identity, key, profile);
    final EnrollmentTransaction trans = new EnrollmentTransaction(
        transport, encoder, decoder, csr);

    try {
      MessageDigest digest = getCaCapabilities(profile)
          .getStrongestMessageDigest();
View Full Code Here

Examples of org.jscep.transaction.EnrollmentTransaction

    PkiMessageDecoder decoder = getDecoder(identity, identityKey, profile);

    IssuerAndSubject ias = new IssuerAndSubject(X500Utils.toX500Name(issuer
        .getIssuerX500Principal()), X500Utils.toX500Name(subject));

    final EnrollmentTransaction trans = new EnrollmentTransaction(
        transport, encoder, decoder, ias, transId);
    return send(trans);
  }
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.