Class RPKISignedDataGenerator


  • public class RPKISignedDataGenerator
    extends org.bouncycastle.cms.CMSSignedDataGenerator
    CMSSignedDataGenerator from BouncyCastle was originally for PKCS7, which follows RFC5652, allowing BER signed data. This RPKISignedDataGenerator is doing the same, except that following RFC6488, it generates DER encoding of the CMSSignedData.
    • Field Summary

      • Fields inherited from class org.bouncycastle.cms.CMSSignedGenerator

        _signers, certs, crls, DATA, DIGEST_GOST3411, DIGEST_MD5, DIGEST_RIPEMD128, DIGEST_RIPEMD160, DIGEST_RIPEMD256, DIGEST_SHA1, DIGEST_SHA224, DIGEST_SHA256, DIGEST_SHA384, DIGEST_SHA512, digestAlgIdFinder, digests, ENCRYPTION_DSA, ENCRYPTION_ECDSA, ENCRYPTION_ECGOST3410, ENCRYPTION_ECGOST3410_2012_256, ENCRYPTION_ECGOST3410_2012_512, ENCRYPTION_GOST3410, ENCRYPTION_RSA, ENCRYPTION_RSA_PSS, signerGens
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.bouncycastle.cms.CMSSignedData generate​(org.bouncycastle.cms.CMSTypedData content, boolean encapsulate)
      Generate a CMS Signed Data object which can be carrying a detached CMS signature, or have encapsulated data, depending on the value of the encapsulated parameter.
      • Methods inherited from class org.bouncycastle.cms.CMSSignedDataGenerator

        generate, generateCounterSigners, setDefiniteLengthEncoding
      • Methods inherited from class org.bouncycastle.cms.CMSSignedGenerator

        addAttributeCertificate, addAttributeCertificates, addCertificate, addCertificates, addCRL, addCRLs, addOtherRevocationInfo, addOtherRevocationInfo, addSignerInfoGenerator, addSigners, getBaseParameters, getGeneratedDigests
    • Constructor Detail

      • RPKISignedDataGenerator

        public RPKISignedDataGenerator()
    • Method Detail

      • generate

        public org.bouncycastle.cms.CMSSignedData generate​(org.bouncycastle.cms.CMSTypedData content,
                                                           boolean encapsulate)
                                                    throws org.bouncycastle.cms.CMSException
        Generate a CMS Signed Data object which can be carrying a detached CMS signature, or have encapsulated data, depending on the value of the encapsulated parameter.
        Overrides:
        generate in class org.bouncycastle.cms.CMSSignedDataGenerator
        Parameters:
        content - the content to be signed.
        encapsulate - true if the content should be encapsulated in the signature, false otherwise.
        Throws:
        org.bouncycastle.cms.CMSException