Class DecryptionStream
- java.lang.Object
-
- java.io.InputStream
-
- org.pgpainless.decryption_verification.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 anInputStream
which can be used to decrypt / verify OpenPGP messages.
-
-
Constructor Summary
Constructors Constructor Description DecryptionStream()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description abstract MessageMetadata
getMetadata()
Returnmetadata
about the decrypted / verified message.OpenPgpMetadata
getResult()
Deprecated.usegetMetadata()
instead.
-
-
-
Method Detail
-
getMetadata
public abstract MessageMetadata getMetadata()
Returnmetadata
about the decrypted / verified message. TheDecryptionStream
MUST be closed viaInputStream.close()
before the metadata object can be accessed.- Returns:
- message metadata
-
getResult
@Deprecated public OpenPgpMetadata getResult()
Deprecated.usegetMetadata()
instead.Return aOpenPgpMetadata
object containing information about the decrypted / verified message. TheDecryptionStream
MUST be closed viaInputStream.close()
before the metadata object can be accessed.- Returns:
- message metadata
-
-