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:
Closeable,Flushable,AutoCloseable
Output stream that wraps each packed with GSS encryption.
-
Field Summary
Fields inherited from class org.postgresql.util.internal.PgBufferedOutputStream
buf, countFields inherited from class java.io.FilterOutputStream
out -
Constructor Summary
ConstructorsConstructorDescriptionGSSOutputStream(PgBufferedOutputStream out, GSSContext gssContext, MessageProp messageProp, int maxTokenSize) Creates GSS output stream. -
Method Summary
Methods inherited from class org.postgresql.util.internal.PgBufferedOutputStream
flush, write, write, writeInt2, writeInt4, writeZerosMethods inherited from class java.io.FilterOutputStream
close, writeMethods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
GSSOutputStream
public GSSOutputStream(PgBufferedOutputStream out, GSSContext gssContext, MessageProp messageProp, int maxTokenSize) throws GSSException Creates GSS output stream.- Parameters:
out- output stream for the encrypted datagssContext- gss contextmessageProp- message propertiesmaxTokenSize- maximum length of the encrypted messages- Throws:
GSSException
-
-
Method Details
-
flushBuffer
- Overrides:
flushBufferin classPgBufferedOutputStream- Throws:
IOException
-
write
- Overrides:
writein classPgBufferedOutputStream- Throws:
IOException
-