Package sop.external.operation
Class DecryptExternal
- java.lang.Object
-
- sop.external.operation.DecryptExternal
-
- All Implemented Interfaces:
sop.operation.Decrypt
public class DecryptExternal extends java.lang.Object implements sop.operation.DecryptImplementation of theDecryptoperation using an external SOP binary.
-
-
Constructor Summary
Constructors Constructor Description DecryptExternal(java.lang.String binary, java.util.Properties environment, ExternalSOP.TempDirProvider tempDirProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description sop.ReadyWithResult<sop.DecryptionResult>ciphertext(java.io.InputStream ciphertext)sop.operation.DecryptverifyNotAfter(java.util.Date timestamp)sop.operation.DecryptverifyNotBefore(java.util.Date timestamp)sop.operation.DecryptverifyWithCert(java.io.InputStream cert)sop.operation.DecryptwithKey(java.io.InputStream key)sop.operation.DecryptwithKeyPassword(byte[] password)sop.operation.DecryptwithPassword(java.lang.String password)sop.operation.DecryptwithSessionKey(sop.SessionKey sessionKey)
-
-
-
Constructor Detail
-
DecryptExternal
public DecryptExternal(java.lang.String binary, java.util.Properties environment, ExternalSOP.TempDirProvider tempDirProvider)
-
-
Method Detail
-
verifyNotBefore
public sop.operation.Decrypt verifyNotBefore(java.util.Date timestamp) throws sop.exception.SOPGPException.UnsupportedOption- Specified by:
verifyNotBeforein interfacesop.operation.Decrypt- Throws:
sop.exception.SOPGPException.UnsupportedOption
-
verifyNotAfter
public sop.operation.Decrypt verifyNotAfter(java.util.Date timestamp) throws sop.exception.SOPGPException.UnsupportedOption- Specified by:
verifyNotAfterin interfacesop.operation.Decrypt- Throws:
sop.exception.SOPGPException.UnsupportedOption
-
verifyWithCert
public sop.operation.Decrypt verifyWithCert(java.io.InputStream cert) throws sop.exception.SOPGPException.BadData, sop.exception.SOPGPException.UnsupportedAsymmetricAlgo, java.io.IOException- Specified by:
verifyWithCertin interfacesop.operation.Decrypt- Throws:
sop.exception.SOPGPException.BadDatasop.exception.SOPGPException.UnsupportedAsymmetricAlgojava.io.IOException
-
withSessionKey
public sop.operation.Decrypt withSessionKey(sop.SessionKey sessionKey) throws sop.exception.SOPGPException.UnsupportedOption- Specified by:
withSessionKeyin interfacesop.operation.Decrypt- Throws:
sop.exception.SOPGPException.UnsupportedOption
-
withPassword
public sop.operation.Decrypt withPassword(java.lang.String password) throws sop.exception.SOPGPException.PasswordNotHumanReadable, sop.exception.SOPGPException.UnsupportedOption- Specified by:
withPasswordin interfacesop.operation.Decrypt- Throws:
sop.exception.SOPGPException.PasswordNotHumanReadablesop.exception.SOPGPException.UnsupportedOption
-
withKey
public sop.operation.Decrypt withKey(java.io.InputStream key) throws sop.exception.SOPGPException.BadData, sop.exception.SOPGPException.UnsupportedAsymmetricAlgo, java.io.IOException- Specified by:
withKeyin interfacesop.operation.Decrypt- Throws:
sop.exception.SOPGPException.BadDatasop.exception.SOPGPException.UnsupportedAsymmetricAlgojava.io.IOException
-
withKeyPassword
public sop.operation.Decrypt withKeyPassword(byte[] password) throws sop.exception.SOPGPException.UnsupportedOption, sop.exception.SOPGPException.PasswordNotHumanReadable- Specified by:
withKeyPasswordin interfacesop.operation.Decrypt- Throws:
sop.exception.SOPGPException.UnsupportedOptionsop.exception.SOPGPException.PasswordNotHumanReadable
-
ciphertext
public sop.ReadyWithResult<sop.DecryptionResult> ciphertext(java.io.InputStream ciphertext) throws sop.exception.SOPGPException.BadData, sop.exception.SOPGPException.MissingArg, sop.exception.SOPGPException.CannotDecrypt, sop.exception.SOPGPException.KeyIsProtected, java.io.IOException- Specified by:
ciphertextin interfacesop.operation.Decrypt- Throws:
sop.exception.SOPGPException.BadDatasop.exception.SOPGPException.MissingArgsop.exception.SOPGPException.CannotDecryptsop.exception.SOPGPException.KeyIsProtectedjava.io.IOException
-
-