Class DecryptionStream

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable
    Direct Known Subclasses:
    OpenPgpMessageInputStream

    public abstract class DecryptionStream
    extends java.io.InputStream
    Abstract definition of an InputStream which can be used to decrypt / verify OpenPGP messages.
    • Constructor Detail

      • DecryptionStream

        public DecryptionStream()
    • Method Detail

      • getMetadata

        public abstract MessageMetadata getMetadata()
        Return metadata about the decrypted / verified message. The DecryptionStream MUST be closed via InputStream.close() before the metadata object can be accessed.
        Returns:
        message metadata
      • getResult

        @Deprecated
        public OpenPgpMetadata getResult()
        Deprecated.
        use getMetadata() instead.
        Return a OpenPgpMetadata object containing information about the decrypted / verified message. The DecryptionStream MUST be closed via InputStream.close() before the metadata object can be accessed.
        Returns:
        message metadata