Package org.jscep.message

Examples of org.jscep.message.GetCert


  Nonce senderNonce = Nonce.nextNonce();
  X500Name name = new X500Name("CN=jscep.org");
  BigInteger serialNumber = BigInteger.ONE;
  IssuerAndSerialNumber iasn = new IssuerAndSerialNumber(name,
    serialNumber);
  GetCert getCert = new GetCert(transId, senderNonce, iasn);
  PkiOperationRequest req = new PkiOperationRequest(enc.encode(getCert));

  try {
      transport.sendRequest(req, new PkiOperationResponseHandler());
  } catch (TransportException e) {
View Full Code Here


      IssuerAndSerialNumber iasn, MessageType msgType) {
  super(transport, encoder, decoder);
  this.transId = TransactionId.createTransactionId();

  if (msgType == MessageType.GET_CERT) {
      this.request = new GetCert(transId, Nonce.nextNonce(), iasn);
  } else if (msgType == MessageType.GET_CRL) {
      this.request = new GetCrl(transId, Nonce.nextNonce(), iasn);
  } else {
      throw new IllegalArgumentException(msgType.toString());
  }
View Full Code Here

TOP

Related Classes of org.jscep.message.GetCert

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.