Class DecryptImpl

  • All Implemented Interfaces:
    sop.operation.Decrypt

    public class DecryptImpl
    extends java.lang.Object
    implements sop.operation.Decrypt
    • Constructor Detail

      • DecryptImpl

        public DecryptImpl()
    • Method Detail

      • verifyNotBefore

        public DecryptImpl verifyNotBefore​(java.util.Date timestamp)
                                    throws sop.exception.SOPGPException.UnsupportedOption
        Specified by:
        verifyNotBefore in interface sop.operation.Decrypt
        Throws:
        sop.exception.SOPGPException.UnsupportedOption
      • verifyNotAfter

        public DecryptImpl verifyNotAfter​(java.util.Date timestamp)
                                   throws sop.exception.SOPGPException.UnsupportedOption
        Specified by:
        verifyNotAfter in interface sop.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:
        verifyWithCert in interface sop.operation.Decrypt
        Throws:
        sop.exception.SOPGPException.BadData
        java.io.IOException
      • withSessionKey

        public DecryptImpl withSessionKey​(sop.SessionKey sessionKey)
                                   throws sop.exception.SOPGPException.UnsupportedOption
        Specified by:
        withSessionKey in interface sop.operation.Decrypt
        Throws:
        sop.exception.SOPGPException.UnsupportedOption
      • withPassword

        public DecryptImpl withPassword​(java.lang.String password)
        Specified by:
        withPassword in interface sop.operation.Decrypt
      • withKey

        public DecryptImpl withKey​(java.io.InputStream keyIn)
                            throws sop.exception.SOPGPException.KeyIsProtected,
                                   sop.exception.SOPGPException.BadData,
                                   sop.exception.SOPGPException.UnsupportedAsymmetricAlgo
        Specified by:
        withKey in interface sop.operation.Decrypt
        Throws:
        sop.exception.SOPGPException.KeyIsProtected
        sop.exception.SOPGPException.BadData
        sop.exception.SOPGPException.UnsupportedAsymmetricAlgo
      • ciphertext

        public sop.ReadyWithResult<sop.DecryptionResult> ciphertext​(java.io.InputStream ciphertext)
                                                             throws sop.exception.SOPGPException.BadData,
                                                                    sop.exception.SOPGPException.MissingArg
        Specified by:
        ciphertext in interface sop.operation.Decrypt
        Throws:
        sop.exception.SOPGPException.BadData
        sop.exception.SOPGPException.MissingArg