Class CleartextSignatureProcessor
- java.lang.Object
-
- org.pgpainless.decryption_verification.cleartext_signatures.CleartextSignatureProcessor
-
public class CleartextSignatureProcessor extends Object
Processor for cleartext-signed messages.
-
-
Constructor Summary
Constructors Constructor Description CleartextSignatureProcessor(InputStream inputStream, ConsumerOptions options)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DecryptionStream
getVerificationStream()
Perform the first pass of cleartext signed message processing: Unpack the message from the ascii armor and detach signatures.
-
-
-
Constructor Detail
-
CleartextSignatureProcessor
public CleartextSignatureProcessor(InputStream inputStream, ConsumerOptions options) throws IOException
- Throws:
IOException
-
-
Method Detail
-
getVerificationStream
public DecryptionStream getVerificationStream() throws IOException, org.bouncycastle.openpgp.PGPException
Perform the first pass of cleartext signed message processing: Unpack the message from the ascii armor and detach signatures. The plaintext message is being written to cache/disk according to the usedMultiPassStrategy
. The result of this method is aDecryptionStream
which will perform the second pass. It again outputs the plaintext message and performs signature verification. The result ofCloseForResultInputStream.getResult()
contains information about the messages signatures.- Returns:
- validated signature
- Throws:
IOException
- if the signature cannot be read.org.bouncycastle.openpgp.PGPException
- if the signature cannot be initialized.SignatureValidationException
- if the signature is invalid.
-
-