For the latest news and information visit
The GNU Crypto project

gnu.crypto.sasl
Class SaslOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by gnu.crypto.sasl.SaslOutputStream
All Implemented Interfaces:
Closeable, Flushable

public class SaslOutputStream
extends OutputStream

An output stream that uses either a SaslClient or a SaslServer to process the data through these entities' security layer filter(s).

Version:
$Revision: 1.2 $

Constructor Summary
SaslOutputStream(SaslClient client, OutputStream dest)
           
SaslOutputStream(SaslServer server, OutputStream dest)
           
 
Method Summary
 void close()
           
 void flush()
           
 void write(byte[] b, int off, int len)
          When writing octets to the resulting stream, if a security layer has been negotiated, each piece of data written (by a single invocation of write()) will be encapsulated as a SASL buffer, as defined in RFC 2222, and then written to the underlying dest output stream.
 void write(int b)
          When writing octets to the resulting stream, if a security layer has been negotiated, each piece of data written (by a single invocation of write()) will be encapsulated as a SASL buffer, as defined in RFC 2222, and then written to the underlying dest output stream.
 
Methods inherited from class java.io.OutputStream
write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SaslOutputStream

public SaslOutputStream(SaslClient client,
                        OutputStream dest)
                 throws IOException
Throws:
IOException

SaslOutputStream

public SaslOutputStream(SaslServer server,
                        OutputStream dest)
                 throws IOException
Throws:
IOException
Method Detail

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Overrides:
close in class OutputStream
Throws:
IOException

flush

public void flush()
           throws IOException
Specified by:
flush in interface Flushable
Overrides:
flush in class OutputStream
Throws:
IOException

write

public void write(int b)
           throws IOException
When writing octets to the resulting stream, if a security layer has been negotiated, each piece of data written (by a single invocation of write()) will be encapsulated as a SASL buffer, as defined in RFC 2222, and then written to the underlying dest output stream.

Specified by:
write in class OutputStream
Throws:
IOException

write

public void write(byte[] b,
                  int off,
                  int len)
           throws IOException
When writing octets to the resulting stream, if a security layer has been negotiated, each piece of data written (by a single invocation of write()) will be encapsulated as a SASL buffer, as defined in RFC 2222, and then written to the underlying dest output stream.

Overrides:
write in class OutputStream
Throws:
IOException

For the latest news and information visit
The GNU Crypto project

Copyright © 2001, 2002, 2003 Free Software Foundation, Inc. All Rights Reserved.