Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

gnu.javax.crypto.sasl
Class SaslOutputStream  view SaslOutputStream download SaslOutputStream.java

java.lang.Object
  extended byjava.io.OutputStream
      extended bygnu.javax.crypto.sasl.SaslOutputStream

public class SaslOutputStream
extends java.io.OutputStream

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


Field Summary
private  javax.security.sasl.SaslClient client
           
private static boolean DEBUG
           
private static int debuglevel
           
private  java.io.OutputStream dest
           
private static java.io.PrintWriter err
           
private  int maxRawSendSize
           
private static java.lang.String NAME
           
private  javax.security.sasl.SaslServer server
           
private static java.lang.String TRACE
           
 
Constructor Summary
SaslOutputStream(javax.security.sasl.SaslClient client, java.io.OutputStream dest)
           
SaslOutputStream(javax.security.sasl.SaslServer server, java.io.OutputStream dest)
           
 
Method Summary
 void close()
          This method closes the stream.
private static void debug(java.lang.String level, java.lang.Object obj)
           
 void flush()
          This method forces any data that may have been buffered to be written to the underlying output device.
 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
 

Field Detail

NAME

private static final java.lang.String NAME
See Also:
Constant Field Values

TRACE

private static final java.lang.String TRACE
See Also:
Constant Field Values

DEBUG

private static final boolean DEBUG
See Also:
Constant Field Values

debuglevel

private static final int debuglevel
See Also:
Constant Field Values

err

private static final java.io.PrintWriter err

client

private javax.security.sasl.SaslClient client

server

private javax.security.sasl.SaslServer server

maxRawSendSize

private int maxRawSendSize

dest

private java.io.OutputStream dest
Constructor Detail

SaslOutputStream

public SaslOutputStream(javax.security.sasl.SaslClient client,
                        java.io.OutputStream dest)
                 throws java.io.IOException

SaslOutputStream

public SaslOutputStream(javax.security.sasl.SaslServer server,
                        java.io.OutputStream dest)
                 throws java.io.IOException
Method Detail

debug

private static void debug(java.lang.String level,
                          java.lang.Object obj)

close

public void close()
           throws java.io.IOException
Description copied from class: java.io.OutputStream
This method closes the stream. Any internal or native resources associated with this stream are freed. Any subsequent attempt to access the stream might throw an exception.

This method in this class does nothing.


flush

public void flush()
           throws java.io.IOException
Description copied from class: java.io.OutputStream
This method forces any data that may have been buffered to be written to the underlying output device. Please note that the host environment might perform its own buffering unbeknowst to Java. In that case, a write made (for example, to a disk drive) might be cached in OS buffers instead of actually being written to disk.

This method in this class does nothing.


write

public void write(int b)
           throws java.io.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.


write

public void write(byte[] b,
                  int off,
                  int len)
           throws java.io.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.