Package org.postgresql.gss
Class GSSOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- java.io.FilterOutputStream
-
- org.postgresql.util.internal.PgBufferedOutputStream
-
- org.postgresql.gss.GSSOutputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.io.Flushable,java.lang.AutoCloseable
public class GSSOutputStream extends PgBufferedOutputStream
Output stream that wraps each packed with GSS encryption.
-
-
Field Summary
-
Fields inherited from class org.postgresql.util.internal.PgBufferedOutputStream
buf, count
-
-
Constructor Summary
Constructors Constructor Description GSSOutputStream(PgBufferedOutputStream out, org.ietf.jgss.GSSContext gssContext, org.ietf.jgss.MessageProp messageProp, int maxTokenSize)Creates GSS output stream.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidflushBuffer()voidwrite(byte[] b, int off, int len)-
Methods inherited from class org.postgresql.util.internal.PgBufferedOutputStream
flush, write, write, writeInt2, writeInt4, writeZeros
-
-
-
-
Constructor Detail
-
GSSOutputStream
public GSSOutputStream(PgBufferedOutputStream out, org.ietf.jgss.GSSContext gssContext, org.ietf.jgss.MessageProp messageProp, int maxTokenSize) throws org.ietf.jgss.GSSException
Creates GSS output stream.- Parameters:
out- output stream for the encrypted datagssContext- gss contextmessageProp- message propertiesmaxTokenSize- maximum length of the encrypted messages- Throws:
org.ietf.jgss.GSSException
-
-
Method Detail
-
flushBuffer
protected void flushBuffer() throws java.io.IOException- Overrides:
flushBufferin classPgBufferedOutputStream- Throws:
java.io.IOException
-
write
public void write(byte[] b, int off, int len) throws java.io.IOException- Overrides:
writein classPgBufferedOutputStream- Throws:
java.io.IOException
-
-