Class EncryptImpl

java.lang.Object
org.pgpainless.sop.EncryptImpl
All Implemented Interfaces:
sop.operation.Encrypt

public class EncryptImpl extends Object implements sop.operation.Encrypt
  • Constructor Details

    • EncryptImpl

      public EncryptImpl()
  • 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 keyIn) throws sop.exception.SOPGPException.KeyCannotSign, sop.exception.SOPGPException.UnsupportedAsymmetricAlgo, sop.exception.SOPGPException.BadData
      Specified by:
      signWith in interface sop.operation.Encrypt
      Throws:
      sop.exception.SOPGPException.KeyCannotSign
      sop.exception.SOPGPException.UnsupportedAsymmetricAlgo
      sop.exception.SOPGPException.BadData
    • withKeyPassword

      public sop.operation.Encrypt withKeyPassword(byte[] password)
      Specified by:
      withKeyPassword in interface sop.operation.Encrypt
    • 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
      Specified by:
      withCert in interface sop.operation.Encrypt
      Throws:
      sop.exception.SOPGPException.CertCannotEncrypt
      sop.exception.SOPGPException.UnsupportedAsymmetricAlgo
      sop.exception.SOPGPException.BadData
    • plaintext

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