Package org.pgpainless.sop
Class SignImpl
- java.lang.Object
-
- org.pgpainless.sop.SignImpl
-
-
Constructor Summary
Constructors Constructor Description SignImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Readydata(InputStream data)Signs data.Signkey(InputStream keyIn)Adds the signer key.Signmode(SignAs mode)Sets the signature mode.SignnoArmor()Disable ASCII armor encoding.
-
-
-
Constructor Detail
-
SignImpl
public SignImpl()
-
-
Method Detail
-
mode
public Sign mode(SignAs mode)
Description copied from interface:SignSets the signature mode. Note: This method has to be called beforeSign.key(InputStream)is called.
-
key
public Sign key(InputStream keyIn) throws SOPGPException.KeyIsProtected, SOPGPException.BadData, IOException
Description copied from interface:SignAdds the signer key.- Specified by:
keyin interfaceSign- Parameters:
keyIn- input stream containing encoded key- Returns:
- builder instance
- Throws:
SOPGPException.KeyIsProtectedSOPGPException.BadDataIOException
-
data
public Ready data(InputStream data) throws IOException
Description copied from interface:SignSigns data.- Specified by:
datain interfaceSign- Parameters:
data- input stream containing data- Returns:
- ready
- Throws:
IOException
-
-