Package org.pgpainless.sop
Class EncryptImpl
- java.lang.Object
-
- org.pgpainless.sop.EncryptImpl
-
- All Implemented Interfaces:
sop.operation.Encrypt
public class EncryptImpl extends java.lang.Object implements sop.operation.Encrypt
-
-
Constructor Summary
Constructors Constructor Description EncryptImpl()
-
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 keyIn)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 keyIn) throws sop.exception.SOPGPException.KeyCannotSign, sop.exception.SOPGPException.UnsupportedAsymmetricAlgo, sop.exception.SOPGPException.BadData- Specified by:
signWithin interfacesop.operation.Encrypt- Throws:
sop.exception.SOPGPException.KeyCannotSignsop.exception.SOPGPException.UnsupportedAsymmetricAlgosop.exception.SOPGPException.BadData
-
withKeyPassword
public sop.operation.Encrypt withKeyPassword(byte[] password)
- Specified by:
withKeyPasswordin interfacesop.operation.Encrypt
-
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- Specified by:
withCertin interfacesop.operation.Encrypt- Throws:
sop.exception.SOPGPException.CertCannotEncryptsop.exception.SOPGPException.UnsupportedAsymmetricAlgosop.exception.SOPGPException.BadData
-
plaintext
public sop.Ready plaintext(java.io.InputStream plaintext) throws java.io.IOException- Specified by:
plaintextin interfacesop.operation.Encrypt- Throws:
java.io.IOException
-
-