Code development platform for open source projects from the European Union institutions

Skip to content

Allow custom entries in signature dictionary

Pierrick VANDENBROUCKE requested to merge github/fork/lainosantos/master into master

Created by: lainosantos

Thanks for this excellent software.

Sometimes is important add custom entries, or any relevant infornation as PDPropBuild, in the signature dictionary, but the only way to access PDSignature whith less internvention is getting the return of the createSignatureDictionary private method. Changing it to protected permit us overwrite and add more entries in parent returned signature.

@Override
protected PDSignature createSignatureDictionary(final PAdESCommonParameters parameters, PDDocument pdDocument)
{
    PDSignature signature = super.createSignatureDictionary(parameters, pdDocument);

    // Do something

    return signature;
}

Merge request reports