Package sop.external.operation
Class DecryptExternal
java.lang.Object
sop.external.operation.DecryptExternal
- All Implemented Interfaces:
sop.operation.Decrypt
Implementation of the
Decrypt operation using an external SOP binary.-
Constructor Summary
ConstructorsConstructorDescriptionDecryptExternal(String binary, Properties environment, ExternalSOP.TempDirProvider tempDirProvider) -
Method Summary
Modifier and TypeMethodDescriptionsop.ReadyWithResult<sop.DecryptionResult>ciphertext(InputStream ciphertext) sop.operation.DecryptverifyNotAfter(Date timestamp) sop.operation.DecryptverifyNotBefore(Date timestamp) sop.operation.DecryptverifyWithCert(InputStream cert) sop.operation.DecryptwithKey(InputStream key) sop.operation.DecryptwithKeyPassword(byte[] password) sop.operation.DecryptwithPassword(String password) sop.operation.DecryptwithSessionKey(sop.SessionKey sessionKey) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface sop.operation.Decrypt
ciphertext, verifyWithCert, withKey, withKeyPassword
-
Constructor Details
-
DecryptExternal
public DecryptExternal(String binary, Properties environment, ExternalSOP.TempDirProvider tempDirProvider)
-
-
Method Details
-
verifyNotBefore
public sop.operation.Decrypt verifyNotBefore(Date timestamp) throws sop.exception.SOPGPException.UnsupportedOption - Specified by:
verifyNotBeforein interfacesop.operation.Decrypt- Throws:
sop.exception.SOPGPException.UnsupportedOption
-
verifyNotAfter
public sop.operation.Decrypt verifyNotAfter(Date timestamp) throws sop.exception.SOPGPException.UnsupportedOption - Specified by:
verifyNotAfterin interfacesop.operation.Decrypt- Throws:
sop.exception.SOPGPException.UnsupportedOption
-
verifyWithCert
public sop.operation.Decrypt verifyWithCert(InputStream cert) throws sop.exception.SOPGPException.BadData, sop.exception.SOPGPException.UnsupportedAsymmetricAlgo, IOException - Specified by:
verifyWithCertin interfacesop.operation.Decrypt- Throws:
sop.exception.SOPGPException.BadDatasop.exception.SOPGPException.UnsupportedAsymmetricAlgoIOException
-
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(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(InputStream key) throws sop.exception.SOPGPException.BadData, sop.exception.SOPGPException.UnsupportedAsymmetricAlgo, IOException - Specified by:
withKeyin interfacesop.operation.Decrypt- Throws:
sop.exception.SOPGPException.BadDatasop.exception.SOPGPException.UnsupportedAsymmetricAlgoIOException
-
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(InputStream ciphertext) throws sop.exception.SOPGPException.BadData, sop.exception.SOPGPException.MissingArg, sop.exception.SOPGPException.CannotDecrypt, sop.exception.SOPGPException.KeyIsProtected, IOException - Specified by:
ciphertextin interfacesop.operation.Decrypt- Throws:
sop.exception.SOPGPException.BadDatasop.exception.SOPGPException.MissingArgsop.exception.SOPGPException.CannotDecryptsop.exception.SOPGPException.KeyIsProtectedIOException
-