Package org.bouncycastle.pkcs

Examples of org.bouncycastle.pkcs.PKCS10CertificationRequestBuilder.addAttribute()


      throw ioe;
  }

  PKCS10CertificationRequestBuilder builder = new PKCS10CertificationRequestBuilder(
    X500Name.getInstance(subject.getEncoded()), pkInfo);
  builder.addAttribute(PKCSObjectIdentifiers.pkcs_9_at_challengePassword,
    cpSet);

  return builder.build(signer);
    }
}
View Full Code Here


      throw ioe;
    }

    PKCS10CertificationRequestBuilder builder = new PKCS10CertificationRequestBuilder(
        subject, pkInfo);
    builder.addAttribute(PKCSObjectIdentifiers.pkcs_9_at_challengePassword,
        new DERPrintableString(new String(password)));

    return builder.build(signer);
  }
}
View Full Code Here

          .getInstance(entityPair.getPublic().getEncoded());
      // Generate the certificate signing request
      PKCS10CertificationRequestBuilder csrBuilder = new PKCS10CertificationRequestBuilder(
          entityName, publicKeyInfo);
      // SCEP servers usually require a challenge password
      csrBuilder.addAttribute(
          PKCSObjectIdentifiers.pkcs_9_at_challengePassword,
          new DERPrintableString(new String("password".toCharArray())));
      ContentSigner signer = signerBuilder.build(entityPair.getPrivate());
      PKCS10CertificationRequest csr = csrBuilder.build(signer);
 
View Full Code Here

      throw ioe;
    }

    PKCS10CertificationRequestBuilder builder = new PKCS10CertificationRequestBuilder(
        X500Name.getInstance(subject.getEncoded()), pkInfo);
    builder.addAttribute(PKCSObjectIdentifiers.pkcs_9_at_challengePassword,
        cpSet);

    return builder.build(signer);
  }
}
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.