Package org.xwiki.crypto.signer
Interface CMSSignedDataGenerator
-
@Role public interface CMSSignedDataGenerator
Generate SignedData according to RFC 3852.- Since:
- 6.0M1
- Version:
- $Id: 60100ea2ecdb9ba4df86eaf5eca47959e255db8e $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description byte[]
generate(byte[] data, CMSSignedDataGeneratorParameters parameters)
Generate the SignedData.byte[]
generate(byte[] data, CMSSignedDataGeneratorParameters parameters, boolean embedData)
Generate the SignedData.
-
-
-
Method Detail
-
generate
byte[] generate(byte[] data, CMSSignedDataGeneratorParameters parameters) throws GeneralSecurityException
Generate the SignedData.- Parameters:
data
- the data to be signed.parameters
- the parameters for generation.- Returns:
- an ASN.1 SignedData sequence according to RFC 3852 with an empty EncapsulatedContentInfo.
- Throws:
GeneralSecurityException
- on error.
-
generate
byte[] generate(byte[] data, CMSSignedDataGeneratorParameters parameters, boolean embedData) throws GeneralSecurityException
Generate the SignedData.- Parameters:
data
- the data to be signed.parameters
- the parameters for generation.embedData
- when true, the signed data is embedded into the SignedData.- Returns:
- an ASN.1 SignedData sequence according to RFC 3852.
- Throws:
GeneralSecurityException
- on error.
-
-