Class CloseForResultInputStream

java.lang.Object
java.io.InputStream
org.pgpainless.decryption_verification.CloseForResultInputStream
All Implemented Interfaces:
Closeable, AutoCloseable
Direct Known Subclasses:
DecryptionStream

public abstract class CloseForResultInputStream extends InputStream
  • Field Details

  • Constructor Details

  • Method Details

    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Overrides:
      close in class InputStream
      Throws:
      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