Class CloseForResultInputStream

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

    public abstract class CloseForResultInputStream
    extends java.io.InputStream
    • Constructor Detail

    • Method Detail

      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Overrides:
        close in class java.io.InputStream
        Throws:
        java.io.IOException
      • getResult

        public OpenPgpMetadata getResult()
        Return the result of the decryption. The result contains metadata about the decryption, such as signatures, used keys and algorithms, as well as information about the decrypted file/stream. Can only be obtained once the stream got successfully closed (close()).
        Returns:
        metadata