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 Ready
data(InputStream data)
Signs data.Sign
key(InputStream keyIn)
Adds the signer key.Sign
mode(SignAs mode)
Sets the signature mode.Sign
noArmor()
Disable ASCII armor encoding.
-
-
-
Constructor Detail
-
SignImpl
public SignImpl()
-
-
Method Detail
-
mode
public Sign mode(SignAs mode)
Description copied from interface:Sign
Sets 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:Sign
Adds the signer key.- Specified by:
key
in interfaceSign
- Parameters:
keyIn
- input stream containing encoded key- Returns:
- builder instance
- Throws:
SOPGPException.KeyIsProtected
SOPGPException.BadData
IOException
-
data
public Ready data(InputStream data) throws IOException
Description copied from interface:Sign
Signs data.- Specified by:
data
in interfaceSign
- Parameters:
data
- input stream containing data- Returns:
- ready
- Throws:
IOException
-
-