public class CMSSignedDataMultipleSignatureGenerator extends CMSSignedDataGenerator
CMSSignedDataGenerator.DigOutputStream, CMSSignedDataGenerator.SigOutputStream| Modifier and Type | Field and Description |
|---|---|
private CMSSignedData |
originalCMS |
isCertexCMS, signerInfs_certs, _crls, _digests, _signers, DATA, DIGEST_GOST3411, DIGEST_GOST3411_2012_256, DIGEST_GOST3411_2012_512, DIGEST_GOST3411G, DIGEST_KZ_GOST_34_11_95, DIGEST_KZ_GOST_34_11_95_TEST, DIGEST_MD5, DIGEST_SHA1, ENCRYPTION_DSA, ENCRYPTION_ECDSA, ENCRYPTION_ECGOST3410, ENCRYPTION_GOST3410, ENCRYPTION_GOST3410_2012, ENCRYPTION_GOST3410_2012_2, ENCRYPTION_KZ_GOST_34_310_SIGNATURE, ENCRYPTION_RECGOST3410, ENCRYPTION_RSA, ENCRYPTION_RSA_PSS| Constructor and Description |
|---|
CMSSignedDataMultipleSignatureGenerator(CMSSignedData originalCMSSignedData)
constructor for generating multiple signature CMS,
|
| Modifier and Type | Method and Description |
|---|---|
CMSSignedData |
generate(CMSProcessable content,
boolean encapsulate,
java.lang.String sigProvider)
method for generating multiple-signature cms.
|
CMSSignedData |
generate(CMSProcessable content,
java.lang.String sigProvider)
generate a signed object that for a CMS Signed Data
object using the given provider.
|
CMSSignedData |
generate(java.lang.String sigProvider)
prefered method for generating multiple-signature cms.
|
CMSSignedData |
generate(java.lang.String signedContentType,
CMSProcessable content,
boolean encapsulate,
java.lang.String sigProvider)
method for generating multiple-signature cms.
|
CMSSignedData |
generate(java.lang.String signedContentType,
CMSProcessable content,
boolean encapsulate,
java.lang.String sigProvider,
boolean addDefaultAttributes)
method for generating multiple-signature cms.
|
addSigner, addSigner, addSigneraddAttributeCertificates, addCertificatesAndCRLs, addSigners, getAttributeSet, getBaseParameters, getEncAlgorithmIdentifier, getEncOID, getGeneratedDigestsprivate CMSSignedData originalCMS
public CMSSignedDataMultipleSignatureGenerator(CMSSignedData originalCMSSignedData)
originalCMSSignedData - original CMS signed data to which new signer will be addedpublic CMSSignedData generate(java.lang.String signedContentType, CMSProcessable content, boolean encapsulate, java.lang.String sigProvider, boolean addDefaultAttributes) throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException, CMSException
generate in class CMSSignedDataGeneratorsignedContentType - this parameter is ignored for multiple signature generator,
encapsulation will be determined based on original CMScontent - data to be signed, must be the same as in original CMS Signed Dataencapsulate - this parameter is ignored for multiple signature generator,
encapsulation will be determined based on original CMSsigProvider - cryptographic provider nameaddDefaultAttributes - default - true, if true - default signed attrs will be added,
if false - no signed attrs will be added (insecure)java.security.NoSuchAlgorithmExceptionjava.security.NoSuchProviderExceptionCMSExceptionpublic CMSSignedData generate(java.lang.String signedContentType, CMSProcessable content, boolean encapsulate, java.lang.String sigProvider) throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException, CMSException
generate in class CMSSignedDataGeneratorsignedContentType - this parameter is ignored for multiple signature generator,
encapsulation will be determined based on original CMScontent - data to be signed, must be the same as in original CMS Signed Dataencapsulate - this parameter is ignored for multiple signature generator,
encapsulation will be determined based on original CMSsigProvider - cryptographic provider namejava.security.NoSuchAlgorithmExceptionjava.security.NoSuchProviderExceptionCMSExceptionpublic CMSSignedData generate(CMSProcessable content, boolean encapsulate, java.lang.String sigProvider) throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException, CMSException
generate in class CMSSignedDataGeneratorcontent - data to be signed, must be the same as in original CMS Signed Dataencapsulate - this parameter is ignored for multiple signature generator,
encapsulation will be determined based on original CMSsigProvider - cryptographic provider namejava.security.NoSuchAlgorithmExceptionjava.security.NoSuchProviderExceptionCMSExceptionpublic CMSSignedData generate(CMSProcessable content, java.lang.String sigProvider) throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException, CMSException
generate in class CMSSignedDataGeneratorjava.security.NoSuchAlgorithmExceptionjava.security.NoSuchProviderExceptionCMSExceptionpublic CMSSignedData generate(java.lang.String sigProvider) throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException, CMSException
sigProvider - cryptographic provider namejava.security.NoSuchAlgorithmExceptionjava.security.NoSuchProviderExceptionCMSExceptionCopyright © 1998-2014 Gamma Technologies. All Rights Reserved.