Class C509CertificationRequestBuilder


  • public class C509CertificationRequestBuilder
    extends java.lang.Object
    Builder for natively signed C509 certification requests (type 2, Section 4 of draft-ietf-cose-cbor-encoded-cert-20). The proof-of-possession signature is computed directly over the TBSCertificationRequest CBOR sequence.
    • Constructor Detail

      • C509CertificationRequestBuilder

        public C509CertificationRequestBuilder​(org.bouncycastle.asn1.x500.X500Name subject,
                                               org.bouncycastle.asn1.x509.SubjectPublicKeyInfo subjectPublicKeyInfo)
        Base constructor.
        Parameters:
        subject - the X.500 name defining the certificate subject.
        subjectPublicKeyInfo - the info structure for the public key to be associated with the request.
    • Method Detail

      • setExtensionRequest

        public C509CertificationRequestBuilder setExtensionRequest​(org.bouncycastle.asn1.x509.Extensions extensionRequest)
        Set the extensions requested of the CA (the RFC 2985 extensionRequest attribute).
      • setChallengePassword

        public C509CertificationRequestBuilder setChallengePassword​(java.lang.String challengePassword)
        Set a challenge password (the RFC 2985 challengePassword attribute). In a natively signed request the password is always carried as a UTF-8 text string.
      • setConversionOptions

        public C509CertificationRequestBuilder setConversionOptions​(org.bouncycastle.cbor.c509.C509ConversionOptions options)
        Set the conversion options - point compression in particular.