Package org.pgpainless.sop
Class DecryptImpl
- java.lang.Object
-
- org.pgpainless.sop.DecryptImpl
-
- All Implemented Interfaces:
sop.operation.Decrypt
public class DecryptImpl extends java.lang.Object implements sop.operation.DecryptImplementation of thedecrypt
operation using PGPainless.
-
-
Constructor Summary
Constructors Constructor Description DecryptImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description sop.ReadyWithResult<sop.DecryptionResult>ciphertext(java.io.InputStream ciphertext)DecryptImplverifyNotAfter(java.util.Date timestamp)DecryptImplverifyNotBefore(java.util.Date timestamp)DecryptImplverifyWithCert(java.io.InputStream certIn)DecryptImplwithKey(java.io.InputStream keyIn)sop.operation.DecryptwithKeyPassword(byte[] password)DecryptImplwithPassword(java.lang.String password)DecryptImplwithSessionKey(sop.SessionKey sessionKey)
-
-
-
Method Detail
-
verifyNotBefore
public DecryptImpl verifyNotBefore(java.util.Date timestamp) throws sop.exception.SOPGPException.UnsupportedOption
- Specified by:
verifyNotBeforein interfacesop.operation.Decrypt- Throws:
sop.exception.SOPGPException.UnsupportedOption
-
verifyNotAfter
public DecryptImpl verifyNotAfter(java.util.Date timestamp) throws sop.exception.SOPGPException.UnsupportedOption
- Specified by:
verifyNotAfterin interfacesop.operation.Decrypt- Throws:
sop.exception.SOPGPException.UnsupportedOption
-
verifyWithCert
public DecryptImpl verifyWithCert(java.io.InputStream certIn) throws sop.exception.SOPGPException.BadData, java.io.IOException
- Specified by:
verifyWithCertin interfacesop.operation.Decrypt- Throws:
sop.exception.SOPGPException.BadDatajava.io.IOException
-
withSessionKey
public DecryptImpl withSessionKey(sop.SessionKey sessionKey) throws sop.exception.SOPGPException.UnsupportedOption
- Specified by:
withSessionKeyin interfacesop.operation.Decrypt- Throws:
sop.exception.SOPGPException.UnsupportedOption
-
withPassword
public DecryptImpl withPassword(java.lang.String password)
- Specified by:
withPasswordin interfacesop.operation.Decrypt
-
withKey
public DecryptImpl withKey(java.io.InputStream keyIn) throws sop.exception.SOPGPException.BadData, java.io.IOException, sop.exception.SOPGPException.UnsupportedAsymmetricAlgo
- Specified by:
withKeyin interfacesop.operation.Decrypt- Throws:
sop.exception.SOPGPException.BadDatajava.io.IOExceptionsop.exception.SOPGPException.UnsupportedAsymmetricAlgo
-
withKeyPassword
public sop.operation.Decrypt withKeyPassword(byte[] password)
- Specified by:
withKeyPasswordin interfacesop.operation.Decrypt
-
ciphertext
public sop.ReadyWithResult<sop.DecryptionResult> ciphertext(java.io.InputStream ciphertext) throws sop.exception.SOPGPException.BadData, sop.exception.SOPGPException.MissingArg- Specified by:
ciphertextin interfacesop.operation.Decrypt- Throws:
sop.exception.SOPGPException.BadDatasop.exception.SOPGPException.MissingArg
-
-