Class EncryptImpl

  • All Implemented Interfaces:
    sop.operation.Encrypt

    public class EncryptImpl
    extends java.lang.Object
    implements sop.operation.Encrypt
    • Constructor Summary

      Constructors 
      Constructor Description
      EncryptImpl()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      sop.operation.Encrypt mode​(sop.enums.EncryptAs mode)  
      sop.operation.Encrypt noArmor()  
      sop.Ready plaintext​(java.io.InputStream plaintext)  
      sop.operation.Encrypt signWith​(java.io.InputStream keyIn)  
      sop.operation.Encrypt withCert​(java.io.InputStream cert)  
      sop.operation.Encrypt withPassword​(java.lang.String password)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • EncryptImpl

        public EncryptImpl()
    • Method Detail

      • 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​(java.io.InputStream keyIn)
                                       throws sop.exception.SOPGPException.KeyIsProtected,
                                              sop.exception.SOPGPException.CertCannotSign,
                                              sop.exception.SOPGPException.UnsupportedAsymmetricAlgo,
                                              sop.exception.SOPGPException.BadData
        Specified by:
        signWith in interface sop.operation.Encrypt
        Throws:
        sop.exception.SOPGPException.KeyIsProtected
        sop.exception.SOPGPException.CertCannotSign
        sop.exception.SOPGPException.UnsupportedAsymmetricAlgo
        sop.exception.SOPGPException.BadData
      • withPassword

        public sop.operation.Encrypt withPassword​(java.lang.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​(java.io.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​(java.io.InputStream plaintext)
                            throws java.io.IOException
        Specified by:
        plaintext in interface sop.operation.Encrypt
        Throws:
        java.io.IOException