Package net.ripe.rpki.commons.crypto.cms
Class RPKISignedDataGenerator
- java.lang.Object
-
- org.bouncycastle.cms.CMSSignedGenerator
-
- org.bouncycastle.cms.CMSSignedDataGenerator
-
- net.ripe.rpki.commons.crypto.cms.RPKISignedDataGenerator
-
public class RPKISignedDataGenerator extends org.bouncycastle.cms.CMSSignedDataGeneratorCMSSignedDataGenerator 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
-
-
Constructor Summary
Constructors Constructor Description RPKISignedDataGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.bouncycastle.cms.CMSSignedDatagenerate(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
-
-
-
-
Method Detail
-
generate
public org.bouncycastle.cms.CMSSignedData generate(org.bouncycastle.cms.CMSTypedData content, boolean encapsulate) throws org.bouncycastle.cms.CMSExceptionGenerate 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:
generatein classorg.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
-
-