private void parseTSDContent(InputStream stream, ContentHandler handler, Metadata metadata,
                                 ParseContext context) throws SAXException {

        CMSTimeStampedDataParser cmsTimeStampedDataParser = null;
        EmbeddedDocumentExtractor edx = EmbeddedDocumentUtil.getEmbeddedDocumentExtractor(context);

        if (edx.shouldParseEmbedded(metadata)) {
            try {
                cmsTimeStampedDataParser = new CMSTimeStampedDataParser(stream);

                try (TikaInputStream tis = TikaInputStream.get(cmsTimeStampedDataParser.getContent())) {
                    edx.parseEmbedded(tis, handler, metadata, true);
                }

            } catch (SecurityException e) {
                throw e;
            } catch (Exception ex) {
                WriteLimitReachedException.throwIfWriteLimitReached(ex);
                LOG.error("Error in TSDParser.parseTSDContent {}", ex.getMessage());
            } finally {
                this.closeCMSParser(cmsTimeStampedDataParser);
            }
        }
    }
Tika parser for Time Stamped Data Envelope (application/timestamped-data)
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-crypto-module/src/main/java/org/apache/tika/parser/crypto/TSDParser.java