Package org.pgpainless.sop
Class DecryptImpl
java.lang.Object
org.pgpainless.sop.DecryptImpl
- All Implemented Interfaces:
sop.operation.Decrypt
Implementation of the
decryptoperation using PGPainless.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsop.ReadyWithResult<sop.DecryptionResult>
ciphertext
(InputStream ciphertext) verifyNotAfter
(Date timestamp) verifyNotBefore
(Date timestamp) verifyWithCert
(InputStream certIn) withKey
(InputStream keyIn) sop.operation.Decrypt
withKeyPassword
(byte[] password) withPassword
(String password) withSessionKey
(sop.SessionKey sessionKey) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface sop.operation.Decrypt
ciphertext, verifyWithCert, withKey, withKeyPassword
-
Constructor Details
-
DecryptImpl
public DecryptImpl()
-
-
Method Details
-
verifyNotBefore
public DecryptImpl verifyNotBefore(Date timestamp) throws sop.exception.SOPGPException.UnsupportedOption - Specified by:
verifyNotBefore
in interfacesop.operation.Decrypt
- Throws:
sop.exception.SOPGPException.UnsupportedOption
-
verifyNotAfter
public DecryptImpl verifyNotAfter(Date timestamp) throws sop.exception.SOPGPException.UnsupportedOption - Specified by:
verifyNotAfter
in interfacesop.operation.Decrypt
- Throws:
sop.exception.SOPGPException.UnsupportedOption
-
verifyWithCert
public DecryptImpl verifyWithCert(InputStream certIn) throws sop.exception.SOPGPException.BadData, IOException - Specified by:
verifyWithCert
in interfacesop.operation.Decrypt
- Throws:
sop.exception.SOPGPException.BadData
IOException
-
withSessionKey
public DecryptImpl withSessionKey(sop.SessionKey sessionKey) throws sop.exception.SOPGPException.UnsupportedOption - Specified by:
withSessionKey
in interfacesop.operation.Decrypt
- Throws:
sop.exception.SOPGPException.UnsupportedOption
-
withPassword
- Specified by:
withPassword
in interfacesop.operation.Decrypt
-
withKey
public DecryptImpl withKey(InputStream keyIn) throws sop.exception.SOPGPException.BadData, IOException, sop.exception.SOPGPException.UnsupportedAsymmetricAlgo - Specified by:
withKey
in interfacesop.operation.Decrypt
- Throws:
sop.exception.SOPGPException.BadData
IOException
sop.exception.SOPGPException.UnsupportedAsymmetricAlgo
-
withKeyPassword
public sop.operation.Decrypt withKeyPassword(byte[] password) - Specified by:
withKeyPassword
in interfacesop.operation.Decrypt
-
ciphertext
public sop.ReadyWithResult<sop.DecryptionResult> ciphertext(InputStream ciphertext) throws sop.exception.SOPGPException.BadData, sop.exception.SOPGPException.MissingArg - Specified by:
ciphertext
in interfacesop.operation.Decrypt
- Throws:
sop.exception.SOPGPException.BadData
sop.exception.SOPGPException.MissingArg
-