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.InputStreamAbstract definition of anInputStreamwhich 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 MessageMetadatagetMetadata()Returnmetadataabout the decrypted / verified message.OpenPgpMetadatagetResult()Deprecated.usegetMetadata()instead.
-
-
-
Method Detail
-
getMetadata
public abstract MessageMetadata getMetadata()
Returnmetadataabout the decrypted / verified message. TheDecryptionStreamMUST be closed viaInputStream.close()before the metadata object can be accessed.- Returns:
- message metadata
-
getResult
@Deprecated public OpenPgpMetadata getResult()
Deprecated.usegetMetadata()instead.Return aOpenPgpMetadataobject containing information about the decrypted / verified message. TheDecryptionStreamMUST be closed viaInputStream.close()before the metadata object can be accessed.- Returns:
- message metadata
-
-