Package sop.operation
Interface Sign
-
public 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(java.io.InputStream data)
Signs data.default Sign
key(byte[] key)
Adds the signer key.Sign
key(java.io.InputStream key)
Adds the signer key.Sign
mode(SignAs mode)
Sets the signature mode.Sign
noArmor()
Disable ASCII armor encoding.
-
-
-
Method Detail
-
noArmor
Sign noArmor()
Disable ASCII armor encoding.- Returns:
- builder instance
-
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(java.io.InputStream key) throws SOPGPException.KeyIsProtected, SOPGPException.BadData, java.io.IOException
Adds the signer key.- Parameters:
key
- input stream containing encoded key- Returns:
- builder instance
- Throws:
SOPGPException.KeyIsProtected
SOPGPException.BadData
java.io.IOException
-
key
default Sign key(byte[] key) throws SOPGPException.KeyIsProtected, SOPGPException.BadData, java.io.IOException
Adds the signer key.- Parameters:
key
- byte array containing encoded key- Returns:
- builder instance
- Throws:
SOPGPException.KeyIsProtected
SOPGPException.BadData
java.io.IOException
-
data
Ready data(java.io.InputStream data) throws java.io.IOException, SOPGPException.ExpectedText
Signs data.- Parameters:
data
- input stream containing data- Returns:
- ready
- Throws:
java.io.IOException
SOPGPException.ExpectedText
-
data
default Ready data(byte[] data) throws java.io.IOException, SOPGPException.ExpectedText
Signs data.- Parameters:
data
- byte array containing data- Returns:
- ready
- Throws:
java.io.IOException
SOPGPException.ExpectedText
-
-