Package org.c02e.jpgpj
Class Encryptor.SigningOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- java.io.FilterOutputStream
-
- org.c02e.jpgpj.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
-
Constructor Summary
Constructors Constructor Description SigningOutputStream(java.io.OutputStream out, java.util.List<Key> keys, FileMetadata meta)
-
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)
-
-
-
Field Detail
-
finished
protected final java.util.concurrent.atomic.AtomicBoolean finished
-
meta
protected final FileMetadata meta
-
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 classjava.io.FilterOutputStream
- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Overrides:
close
in classjava.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
-
-