gnu.crypto.sasl

Class SaslOutputStream

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
voidclose()
voidflush()
voidwrite(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.
voidwrite(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.

Constructor Detail

SaslOutputStream

public SaslOutputStream(SaslClient client, OutputStream dest)

SaslOutputStream

public SaslOutputStream(SaslServer server, OutputStream dest)

Method Detail

close

public void close()

flush

public void flush()

write

public 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.

write

public 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.
Copyright © 2001, 2002, 2003 Free Software Foundation, Inc. All Rights Reserved.