Package org.pgpainless.sop
Class EncryptImpl
java.lang.Object
org.pgpainless.sop.EncryptImpl
- All Implemented Interfaces:
sop.operation.Encrypt
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsop.operation.Encryptmode(sop.enums.EncryptAs mode) sop.operation.EncryptnoArmor()sop.Readyplaintext(InputStream plaintext) sop.operation.EncryptsignWith(InputStream keyIn) 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, signWith, withCert, withKeyPassword
-
Constructor Details
-
EncryptImpl
public EncryptImpl()
-
-
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 keyIn) 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) - Specified by:
withKeyPasswordin interfacesop.operation.Encrypt
-
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 - Specified by:
withCertin interfacesop.operation.Encrypt- Throws:
sop.exception.SOPGPException.CertCannotEncryptsop.exception.SOPGPException.UnsupportedAsymmetricAlgosop.exception.SOPGPException.BadData
-
plaintext
- Specified by:
plaintextin interfacesop.operation.Encrypt- Throws:
IOException
-