Package sop.external.operation
Class DetachedSignExternal
- java.lang.Object
-
- sop.external.operation.DetachedSignExternal
-
- All Implemented Interfaces:
sop.operation.AbstractSign<sop.operation.DetachedSign>,sop.operation.DetachedSign
public class DetachedSignExternal extends java.lang.Object implements sop.operation.DetachedSignImplementation of theDetachedSignoperation using an external SOP binary.
-
-
Constructor Summary
Constructors Constructor Description DetachedSignExternal(java.lang.String binary, java.util.Properties properties, ExternalSOP.TempDirProvider tempDirProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description sop.ReadyWithResult<sop.SigningResult>data(java.io.InputStream data)sop.operation.DetachedSignkey(java.io.InputStream key)sop.operation.DetachedSignmode(sop.enums.SignAs mode)sop.operation.DetachedSignnoArmor()sop.operation.DetachedSignwithKeyPassword(byte[] password)
-
-
-
Constructor Detail
-
DetachedSignExternal
public DetachedSignExternal(java.lang.String binary, java.util.Properties properties, ExternalSOP.TempDirProvider tempDirProvider)
-
-
Method Detail
-
noArmor
public sop.operation.DetachedSign noArmor()
- Specified by:
noArmorin interfacesop.operation.AbstractSign<sop.operation.DetachedSign>
-
key
public sop.operation.DetachedSign key(java.io.InputStream key) throws sop.exception.SOPGPException.KeyCannotSign, sop.exception.SOPGPException.BadData, sop.exception.SOPGPException.UnsupportedAsymmetricAlgo, java.io.IOException- Specified by:
keyin interfacesop.operation.AbstractSign<sop.operation.DetachedSign>- Throws:
sop.exception.SOPGPException.KeyCannotSignsop.exception.SOPGPException.BadDatasop.exception.SOPGPException.UnsupportedAsymmetricAlgojava.io.IOException
-
withKeyPassword
public sop.operation.DetachedSign withKeyPassword(byte[] password) throws sop.exception.SOPGPException.UnsupportedOption, sop.exception.SOPGPException.PasswordNotHumanReadable- Specified by:
withKeyPasswordin interfacesop.operation.AbstractSign<sop.operation.DetachedSign>- Throws:
sop.exception.SOPGPException.UnsupportedOptionsop.exception.SOPGPException.PasswordNotHumanReadable
-
mode
public sop.operation.DetachedSign mode(sop.enums.SignAs mode) throws sop.exception.SOPGPException.UnsupportedOption- Specified by:
modein interfacesop.operation.DetachedSign- Throws:
sop.exception.SOPGPException.UnsupportedOption
-
data
public sop.ReadyWithResult<sop.SigningResult> data(java.io.InputStream data) throws java.io.IOException, sop.exception.SOPGPException.KeyIsProtected, sop.exception.SOPGPException.ExpectedText- Specified by:
datain interfacesop.operation.DetachedSign- Throws:
java.io.IOExceptionsop.exception.SOPGPException.KeyIsProtectedsop.exception.SOPGPException.ExpectedText
-
-