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
Implementation of the
DetachedSign operation using an external SOP binary.-
Constructor Summary
ConstructorsConstructorDescriptionDetachedSignExternal(String binary, Properties properties, ExternalSOP.TempDirProvider tempDirProvider) -
Method Summary
Modifier and TypeMethodDescriptionsop.ReadyWithResult<sop.SigningResult>data(InputStream data) sop.operation.DetachedSignkey(InputStream key) sop.operation.DetachedSignmode(sop.enums.SignAs mode) sop.operation.DetachedSignnoArmor()sop.operation.DetachedSignwithKeyPassword(byte[] password) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface sop.operation.AbstractSign
key, withKeyPasswordMethods inherited from interface sop.operation.DetachedSign
data
-
Constructor Details
-
DetachedSignExternal
public DetachedSignExternal(String binary, Properties properties, ExternalSOP.TempDirProvider tempDirProvider)
-
-
Method Details
-
noArmor
public sop.operation.DetachedSign noArmor()- Specified by:
noArmorin interfacesop.operation.AbstractSign<sop.operation.DetachedSign>
-
key
public sop.operation.DetachedSign key(InputStream key) throws sop.exception.SOPGPException.KeyCannotSign, sop.exception.SOPGPException.BadData, sop.exception.SOPGPException.UnsupportedAsymmetricAlgo, IOException - Specified by:
keyin interfacesop.operation.AbstractSign<sop.operation.DetachedSign>- Throws:
sop.exception.SOPGPException.KeyCannotSignsop.exception.SOPGPException.BadDatasop.exception.SOPGPException.UnsupportedAsymmetricAlgoIOException
-
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(InputStream data) throws IOException, sop.exception.SOPGPException.KeyIsProtected, sop.exception.SOPGPException.ExpectedText - Specified by:
datain interfacesop.operation.DetachedSign- Throws:
IOExceptionsop.exception.SOPGPException.KeyIsProtectedsop.exception.SOPGPException.ExpectedText
-