@Override
    public void startElement(
            String namespaceURI, String localName, String qName,
            Attributes attrs) throws SAXException {
        if (localName.equals("encryption-data")) {
            throw new SAXException(new EncryptedDocumentException());
        }
    }
For now, this only looks for any encryption-data elements.
If found this will throw an EncryptedDocumentException wrapped
in a SAXException.

If desired, we can add to this to actually extract information
necessary for decryption.  Please open an issue or pull
request for this added functionality.
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-miscoffice-module/src/main/java/org/apache/tika/parser/odf/OpenDocumentManifestHandler.java