com.sun.jmx.remote.opt.security
Class SASLInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by com.sun.jmx.remote.opt.security.SASLInputStream
All Implemented Interfaces:
Closeable

public class SASLInputStream
extends InputStream

This class is used by clients of the Java SASL that need to create streams using SaslClient's wrap/unwrap.


Constructor Summary
SASLInputStream(SaslClient sc, InputStream in)
           
SASLInputStream(SaslServer ss, InputStream in)
           
 
Method Summary
 int available()
           
 void close()
           
 int read()
           
 int read(byte[] inBuf, int start, int count)
           
 
Methods inherited from class java.io.InputStream
mark, markSupported, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SASLInputStream

public SASLInputStream(SaslClient sc,
                       InputStream in)
                throws IOException
Throws:
IOException

SASLInputStream

public SASLInputStream(SaslServer ss,
                       InputStream in)
                throws IOException
Throws:
IOException
Method Detail

read

public int read()
         throws IOException
Specified by:
read in class InputStream
Throws:
IOException

read

public int read(byte[] inBuf,
                int start,
                int count)
         throws IOException
Overrides:
read in class InputStream
Throws:
IOException

available

public int available()
              throws IOException
Overrides:
available in class InputStream
Throws:
IOException

close

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


Copyright © 2014 Terracotta, Inc.. All rights reserved.