@Field
    public void setThrowOnEncryptedPayload(boolean throwOnEncryptedPayload) {
        defaultConfig.setThrowOnEncryptedPayload(throwOnEncryptedPayload);
    }
If the file is a 'Collection' and contains an embedded file with a
defined 'AssociatedFile' value of 'EncryptedPayload', then throw an
{@link EncryptedDocumentException}.
<p>
Microsoft IRM v2 wraps the encrypted document inside a container PDF.
See TIKA-4082.
<p>
The goal of this is to make the user experience the same for
traditionally encrypted files and PDFs that are containers
for `EncryptedPayload`s.
<p>
The default value is <code>false</code>.

@param throwOnEncryptedPayload
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-pdf-module/src/main/java/org/apache/tika/parser/pdf/PDFParser.java