Package org.bouncycastle.pkcs

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


      signer = sigBuild.build(BouncyCastleHelpers.toAsymmetricKeyParameter(keyPair.getPrivate()));
    } catch (OperatorCreationException e) {
      throw new IllegalArgumentException("Error building content signer", e);
    }

    PKCS10CertificationRequest csrHolder = csrBuilder.build(signer);

    return new Csr(csrHolder);
  }

  public static Csr parse(String encoded) {
View Full Code Here


  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

    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

      // 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);
 
      // Send the enrollment request
      EnrollmentResponse response = client
          .enrol(id, idPair.getPrivate(), csr);
      if (response.isFailure()) {
View Full Code Here

    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

            signer = sigBuild.build(BouncyCastleHelpers.toAsymmetricKeyParameter(keyPair.getPrivate()));
        } catch (OperatorCreationException e) {
            throw new IllegalArgumentException("Error building content signer", e);
        }

        PKCS10CertificationRequest csrHolder = csrBuilder.build(signer);

        return new Csr(csrHolder);
    }

    public static Csr parse(String encoded) {
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.