Interface CMSSignedDataGenerator


  • @Role
    public interface CMSSignedDataGenerator
    Generate SignedData according to RFC 3852.
    Since:
    6.0M1
    Version:
    $Id: 60100ea2ecdb9ba4df86eaf5eca47959e255db8e $
    • Method Detail

      • 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.