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.ByteArrayInputStreamgetMessageInputStream()Provide anInputStreamwhich contains the data that was previously written away inMultiPassStrategy.getMessageOutputStream().java.io.ByteArrayOutputStreamgetMessageOutputStream()Provide anOutputStreaminto which the signed data can be read into.
-
-
-
Method Detail
-
getMessageOutputStream
public java.io.ByteArrayOutputStream getMessageOutputStream()
Description copied from interface:MultiPassStrategyProvide anOutputStreaminto which the signed data can be read into.- Specified by:
getMessageOutputStreamin interfaceMultiPassStrategy- Returns:
- output stream
-
getMessageInputStream
public java.io.ByteArrayInputStream getMessageInputStream()
Description copied from interface:MultiPassStrategyProvide anInputStreamwhich contains the data that was previously written away inMultiPassStrategy.getMessageOutputStream().- Specified by:
getMessageInputStreamin interfaceMultiPassStrategy- Returns:
- input stream
-
getBytes
public byte[] getBytes()
-
-