Class EncryptExternal

java.lang.Object
sop.external.operation.EncryptExternal
All Implemented Interfaces:
sop.operation.Encrypt

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

    • EncryptExternal

      public EncryptExternal(String binary, Properties environment)
  • Method Details

    • noArmor

      public sop.operation.Encrypt noArmor()
      Specified by:
      noArmor in interface sop.operation.Encrypt
    • mode

      public sop.operation.Encrypt mode(sop.enums.EncryptAs mode) throws sop.exception.SOPGPException.UnsupportedOption
      Specified by:
      mode in interface sop.operation.Encrypt
      Throws:
      sop.exception.SOPGPException.UnsupportedOption
    • signWith

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

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

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

      public sop.operation.Encrypt withCert(InputStream cert) throws sop.exception.SOPGPException.CertCannotEncrypt, sop.exception.SOPGPException.UnsupportedAsymmetricAlgo, sop.exception.SOPGPException.BadData, IOException
      Specified by:
      withCert in interface sop.operation.Encrypt
      Throws:
      sop.exception.SOPGPException.CertCannotEncrypt
      sop.exception.SOPGPException.UnsupportedAsymmetricAlgo
      sop.exception.SOPGPException.BadData
      IOException
    • profile

      public sop.operation.Encrypt profile(String profileName)
      Specified by:
      profile in interface sop.operation.Encrypt
    • plaintext

      public sop.Ready plaintext(InputStream plaintext) throws sop.exception.SOPGPException.KeyIsProtected
      Specified by:
      plaintext in interface sop.operation.Encrypt
      Throws:
      sop.exception.SOPGPException.KeyIsProtected