Package sop.operation
Interface Sign
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Readydata(byte[] data)Signs data.Readydata(InputStream data)Signs data.default Signkey(byte[] key)Adds the signer key.Signkey(InputStream key)Adds the signer key.Signmode(SignAs mode)Sets the signature mode.SignnoArmor()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.KeyIsProtectedSOPGPException.BadDataIOException
-
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.KeyIsProtectedSOPGPException.BadDataIOException
-
data
Ready data(InputStream data) throws IOException, SOPGPException.ExpectedText
Signs data.- Parameters:
data- input stream containing data- Returns:
- ready
- Throws:
IOExceptionSOPGPException.ExpectedText
-
data
default Ready data(byte[] data) throws IOException, SOPGPException.ExpectedText
Signs data.- Parameters:
data- byte array containing data- Returns:
- ready
- Throws:
IOExceptionSOPGPException.ExpectedText
-
-