Package sop.external.operation
Class EncryptExternal
java.lang.Object
sop.external.operation.EncryptExternal
- All Implemented Interfaces:
sop.operation.Encrypt
Implementation of the
Encrypt operation using an external SOP binary.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsop.operation.Encryptmode(sop.enums.EncryptAs mode) sop.operation.EncryptnoArmor()sop.Readyplaintext(InputStream plaintext) sop.operation.Encryptsop.operation.EncryptsignWith(InputStream key) sop.operation.EncryptwithCert(InputStream cert) sop.operation.EncryptwithKeyPassword(byte[] password) sop.operation.EncryptwithPassword(String password) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface sop.operation.Encrypt
plaintext, profile, signWith, withCert, withKeyPassword
-
Constructor Details
-
EncryptExternal
-
-
Method Details
-
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(InputStream key) throws sop.exception.SOPGPException.KeyCannotSign, sop.exception.SOPGPException.UnsupportedAsymmetricAlgo, sop.exception.SOPGPException.BadData, IOException - Specified by:
signWithin interfacesop.operation.Encrypt- Throws:
sop.exception.SOPGPException.KeyCannotSignsop.exception.SOPGPException.UnsupportedAsymmetricAlgosop.exception.SOPGPException.BadDataIOException
-
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(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(InputStream cert) throws sop.exception.SOPGPException.CertCannotEncrypt, sop.exception.SOPGPException.UnsupportedAsymmetricAlgo, sop.exception.SOPGPException.BadData, IOException - Specified by:
withCertin interfacesop.operation.Encrypt- Throws:
sop.exception.SOPGPException.CertCannotEncryptsop.exception.SOPGPException.UnsupportedAsymmetricAlgosop.exception.SOPGPException.BadDataIOException
-
profile
- Specified by:
profilein interfacesop.operation.Encrypt
-
plaintext
public sop.Ready plaintext(InputStream plaintext) throws sop.exception.SOPGPException.KeyIsProtected - Specified by:
plaintextin interfacesop.operation.Encrypt- Throws:
sop.exception.SOPGPException.KeyIsProtected
-