Class InMemoryMultiPassStrategy
- java.lang.Object
-
- org.pgpainless.signature.cleartext_signatures.InMemoryMultiPassStrategy
-
- All Implemented Interfaces:
MultiPassStrategy
public class InMemoryMultiPassStrategy extends java.lang.Object implements MultiPassStrategy
-
-
Constructor Summary
Constructors Constructor Description InMemoryMultiPassStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getBytes()
java.io.ByteArrayInputStream
getMessageInputStream()
Provide anInputStream
which contains the data that was previously written away inMultiPassStrategy.getMessageOutputStream()
.java.io.ByteArrayOutputStream
getMessageOutputStream()
Provide anOutputStream
into which the signed data can be read into.
-
-
-
Method Detail
-
getMessageOutputStream
public java.io.ByteArrayOutputStream getMessageOutputStream()
Description copied from interface:MultiPassStrategy
Provide anOutputStream
into which the signed data can be read into.- Specified by:
getMessageOutputStream
in interfaceMultiPassStrategy
- Returns:
- output stream
-
getMessageInputStream
public java.io.ByteArrayInputStream getMessageInputStream()
Description copied from interface:MultiPassStrategy
Provide anInputStream
which contains the data that was previously written away inMultiPassStrategy.getMessageOutputStream()
.- Specified by:
getMessageInputStream
in interfaceMultiPassStrategy
- Returns:
- input stream
-
getBytes
public byte[] getBytes()
-
-