Package sop.operation
Interface Sign
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Ready
data(byte[] data)
Signs data.Ready
data(InputStream data)
Signs data.default Sign
key(byte[] key)
Adds the signer key.Sign
key(InputStream key)
Adds the signer key.Sign
mode(SignAs mode)
Sets the signature mode.Sign
noArmor()
Disable ASCII armor encoding.
-
-
-
Method Detail
-
mode
Sign mode(SignAs mode) throws SOPGPException.UnsupportedOption
Sets the signature mode. Note: This method has to be called beforekey(InputStream)
is called.- Parameters:
mode
- signature mode- Returns:
- builder instance
- Throws:
SOPGPException.UnsupportedOption
-
key
Sign key(InputStream key) throws SOPGPException.KeyIsProtected, SOPGPException.BadData, IOException
Adds the signer key.- Parameters:
key
- input stream containing encoded key- Returns:
- builder instance
- Throws:
SOPGPException.KeyIsProtected
SOPGPException.BadData
IOException
-
key
default Sign key(byte[] key) throws SOPGPException.KeyIsProtected, SOPGPException.BadData, IOException
Adds the signer key.- Parameters:
key
- byte array containing encoded key- Returns:
- builder instance
- Throws:
SOPGPException.KeyIsProtected
SOPGPException.BadData
IOException
-
data
Ready data(InputStream data) throws IOException, SOPGPException.ExpectedText
Signs data.- Parameters:
data
- input stream containing data- Returns:
- ready
- Throws:
IOException
SOPGPException.ExpectedText
-
data
default Ready data(byte[] data) throws IOException, SOPGPException.ExpectedText
Signs data.- Parameters:
data
- byte array containing data- Returns:
- ready
- Throws:
IOException
SOPGPException.ExpectedText
-
-