Package org.jscep.asn1

Examples of org.jscep.asn1.IssuerAndSubject


  TransactionId transId = TransactionId.createTransactionId();
  Nonce recipientNonce = Nonce.nextNonce();
  Nonce senderNonce = recipientNonce;
  X500Name issuer = new X500Name("CN=CA");
  X500Name subject = new X500Name("CN=Client");
  IssuerAndSubject ias = new IssuerAndSubject(issuer, subject);
  BigInteger serial = BigInteger.ONE;
  IssuerAndSerialNumber iasn = new IssuerAndSerialNumber(issuer, serial);
  PKCS10CertificationRequest csr = getCsr(new X500Principal("CN=Client"),
    pair.getPublic(), pair.getPrivate(), "password".toCharArray());
  CMSSignedDataGenerator gen = new CMSSignedDataGenerator();
View Full Code Here


    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

    X509Certificate issuer = certStore.getIssuer();

    PkiMessageEncoder encoder = getEncoder(identity, identityKey, profile);
    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

          e.getFailInfo());
    } catch (Exception e) {
        throw new ServletException(e);
    }
      } else if (msgType == MessageType.GET_CERT_INITIAL) {
    final IssuerAndSubject ias = (IssuerAndSubject) msgData;
    final X500Name issuer = X500Name.getInstance(ias.getIssuer());
    final X500Name subject = X500Name.getInstance(ias.getSubject());

    try {
        List<X509Certificate> issued = doGetCertInitial(issuer,
          subject, transId);
View Full Code Here

    IssuerAndSerialNumber messageData = IssuerAndSerialNumber
      .getInstance(decoded);
    LOGGER.debug("Finished decoding pkiMessage");
    return new GetCert(transId, senderNonce, messageData);
      } else if (messageType == MessageType.GET_CERT_INITIAL) {
    IssuerAndSubject messageData = new IssuerAndSubject(decoded);
    LOGGER.debug("Finished decoding pkiMessage");
    return new GetCertInitial(transId, senderNonce, messageData);
      } else if (messageType == MessageType.GET_CRL) {
    IssuerAndSerialNumber messageData = IssuerAndSerialNumber
      .getInstance(decoded);
View Full Code Here

TOP

Related Classes of org.jscep.asn1.IssuerAndSubject

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.