Class Encryptor.SigningOutputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.io.Flushable, java.lang.AutoCloseable
    Enclosing class:
    Encryptor

    protected class Encryptor.SigningOutputStream
    extends java.io.FilterOutputStream
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.concurrent.atomic.AtomicBoolean finished  
      protected FileMetadata meta  
      protected java.util.List<org.bouncycastle.openpgp.PGPSignatureGenerator> sigs  
      • Fields inherited from class java.io.FilterOutputStream

        out
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      protected void finish()  
      protected void init​(java.util.List<Key> keys)  
      void update​(byte[] b, int off, int len)  
      void write​(byte[] b, int off, int len)  
      • Methods inherited from class java.io.FilterOutputStream

        flush, write, write
      • Methods inherited from class java.lang.Object

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

      • finished

        protected final java.util.concurrent.atomic.AtomicBoolean finished
      • sigs

        protected java.util.List<org.bouncycastle.openpgp.PGPSignatureGenerator> sigs
    • Constructor Detail

      • SigningOutputStream

        public SigningOutputStream​(java.io.OutputStream out,
                                   java.util.List<Key> keys,
                                   FileMetadata meta)
                            throws java.io.IOException,
                                   org.bouncycastle.openpgp.PGPException
        Throws:
        java.io.IOException
        org.bouncycastle.openpgp.PGPException
    • Method Detail

      • write

        public void write​(byte[] b,
                          int off,
                          int len)
                   throws java.io.IOException
        Overrides:
        write in class java.io.FilterOutputStream
        Throws:
        java.io.IOException
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Overrides:
        close in class java.io.FilterOutputStream
        Throws:
        java.io.IOException
      • update

        public void update​(byte[] b,
                           int off,
                           int len)
      • init

        protected void init​(java.util.List<Key> keys)
                     throws java.io.IOException,
                            org.bouncycastle.openpgp.PGPException
        Throws:
        java.io.IOException
        org.bouncycastle.openpgp.PGPException
      • finish

        protected void finish()
                       throws java.io.IOException,
                              org.bouncycastle.openpgp.PGPException
        Throws:
        java.io.IOException
        org.bouncycastle.openpgp.PGPException