Package sop.external.operation
Class EncryptExternal
- java.lang.Object
-
- sop.external.operation.EncryptExternal
-
- All Implemented Interfaces:
sop.operation.Encrypt
public class EncryptExternal extends java.lang.Object implements sop.operation.EncryptImplementation of theEncryptoperation using an external SOP binary.
-
-
Constructor Summary
Constructors Constructor Description EncryptExternal(java.lang.String binary, java.util.Properties environment)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description sop.operation.Encryptmode(sop.enums.EncryptAs mode)sop.operation.EncryptnoArmor()sop.Readyplaintext(java.io.InputStream plaintext)sop.operation.EncryptsignWith(java.io.InputStream key)sop.operation.EncryptwithCert(java.io.InputStream cert)sop.operation.EncryptwithKeyPassword(byte[] password)sop.operation.EncryptwithPassword(java.lang.String password)
-
-
-
Method Detail
-
noArmor
public sop.operation.Encrypt noArmor()
- Specified by:
noArmorin interfacesop.operation.Encrypt
-
mode
public sop.operation.Encrypt mode(sop.enums.EncryptAs mode) throws sop.exception.SOPGPException.UnsupportedOption- Specified by:
modein interfacesop.operation.Encrypt- Throws:
sop.exception.SOPGPException.UnsupportedOption
-
signWith
public sop.operation.Encrypt signWith(java.io.InputStream key) throws sop.exception.SOPGPException.KeyCannotSign, sop.exception.SOPGPException.UnsupportedAsymmetricAlgo, sop.exception.SOPGPException.BadData, java.io.IOException- Specified by:
signWithin interfacesop.operation.Encrypt- Throws:
sop.exception.SOPGPException.KeyCannotSignsop.exception.SOPGPException.UnsupportedAsymmetricAlgosop.exception.SOPGPException.BadDatajava.io.IOException
-
withKeyPassword
public sop.operation.Encrypt withKeyPassword(byte[] password) throws sop.exception.SOPGPException.PasswordNotHumanReadable, sop.exception.SOPGPException.UnsupportedOption- Specified by:
withKeyPasswordin interfacesop.operation.Encrypt- Throws:
sop.exception.SOPGPException.PasswordNotHumanReadablesop.exception.SOPGPException.UnsupportedOption
-
withPassword
public sop.operation.Encrypt withPassword(java.lang.String password) throws sop.exception.SOPGPException.PasswordNotHumanReadable, sop.exception.SOPGPException.UnsupportedOption- Specified by:
withPasswordin interfacesop.operation.Encrypt- Throws:
sop.exception.SOPGPException.PasswordNotHumanReadablesop.exception.SOPGPException.UnsupportedOption
-
withCert
public sop.operation.Encrypt withCert(java.io.InputStream cert) throws sop.exception.SOPGPException.CertCannotEncrypt, sop.exception.SOPGPException.UnsupportedAsymmetricAlgo, sop.exception.SOPGPException.BadData, java.io.IOException- Specified by:
withCertin interfacesop.operation.Encrypt- Throws:
sop.exception.SOPGPException.CertCannotEncryptsop.exception.SOPGPException.UnsupportedAsymmetricAlgosop.exception.SOPGPException.BadDatajava.io.IOException
-
plaintext
public sop.Ready plaintext(java.io.InputStream plaintext) throws java.io.IOException, sop.exception.SOPGPException.KeyIsProtected- Specified by:
plaintextin interfacesop.operation.Encrypt- Throws:
java.io.IOExceptionsop.exception.SOPGPException.KeyIsProtected
-
-