Class DecryptExternal

java.lang.Object
sop.external.operation.DecryptExternal
All Implemented Interfaces:
sop.operation.Decrypt

public class DecryptExternal extends Object implements sop.operation.Decrypt
Implementation of the Decrypt operation using an external SOP binary.
  • Constructor Details

  • Method Details

    • verifyNotBefore

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

      public sop.operation.Decrypt verifyNotAfter(Date timestamp) throws sop.exception.SOPGPException.UnsupportedOption
      Specified by:
      verifyNotAfter in interface sop.operation.Decrypt
      Throws:
      sop.exception.SOPGPException.UnsupportedOption
    • verifyWithCert

      public sop.operation.Decrypt verifyWithCert(InputStream cert) throws sop.exception.SOPGPException.BadData, sop.exception.SOPGPException.UnsupportedAsymmetricAlgo, IOException
      Specified by:
      verifyWithCert in interface sop.operation.Decrypt
      Throws:
      sop.exception.SOPGPException.BadData
      sop.exception.SOPGPException.UnsupportedAsymmetricAlgo
      IOException
    • withSessionKey

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

      public sop.operation.Decrypt withPassword(String password) throws sop.exception.SOPGPException.PasswordNotHumanReadable, sop.exception.SOPGPException.UnsupportedOption
      Specified by:
      withPassword in interface sop.operation.Decrypt
      Throws:
      sop.exception.SOPGPException.PasswordNotHumanReadable
      sop.exception.SOPGPException.UnsupportedOption
    • withKey

      public sop.operation.Decrypt withKey(InputStream key) throws sop.exception.SOPGPException.BadData, sop.exception.SOPGPException.UnsupportedAsymmetricAlgo, IOException
      Specified by:
      withKey in interface sop.operation.Decrypt
      Throws:
      sop.exception.SOPGPException.BadData
      sop.exception.SOPGPException.UnsupportedAsymmetricAlgo
      IOException
    • withKeyPassword

      public sop.operation.Decrypt withKeyPassword(byte[] password) throws sop.exception.SOPGPException.UnsupportedOption, sop.exception.SOPGPException.PasswordNotHumanReadable
      Specified by:
      withKeyPassword in interface sop.operation.Decrypt
      Throws:
      sop.exception.SOPGPException.UnsupportedOption
      sop.exception.SOPGPException.PasswordNotHumanReadable
    • ciphertext

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