Require.notNull(this.parameters, "parameters");
Assert.notEmpty(data, "data");
try {
CMSSignedDataGenerator signedDataGenerator = new CMSSignedDataGenerator();
TimeStampClient timeStampClient = this.parameters.getTimeStampClient();
PKCS7SignatureMode mode = this.parameters.getSignatureMode();
SignatureType signatureType = this.parameters.getSignatureType();
if (signatureType == null) {
signatureType = SignatureType.SHA1_RSA;
}