Class DecryptionStream
java.lang.Object
java.io.InputStream
org.pgpainless.decryption_verification.DecryptionStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Direct Known Subclasses:
OpenPgpMessageInputStream
Abstract definition of an
InputStream
which can be used to decrypt / verify OpenPGP messages.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract MessageMetadata
Returnmetadata
about the decrypted / verified message.Deprecated.Methods inherited from class java.io.InputStream
available, close, mark, markSupported, nullInputStream, read, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Constructor Details
-
DecryptionStream
public DecryptionStream()
-
-
Method Details
-
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.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
-
getMetadata()
instead.