org.globus.gsi.gssapi.net
Class GssInputStream

java.lang.Object
  extended byjava.io.InputStream
      extended byorg.globus.gsi.gssapi.net.GssInputStream
Direct Known Subclasses:
GridFTPInputStream, GSIGssInputStream, SaslInputStream

public abstract class GssInputStream
extends InputStream


Field Summary
protected  byte[] buff
           
protected  GSSContext context
           
protected  InputStream in
           
protected  int index
           
 
Constructor Summary
GssInputStream(InputStream in, GSSContext context)
           
 
Method Summary
 int available()
           
 void close()
           
protected  boolean hasData()
           
 int read()
           
 int read(byte[] data)
           
 int read(byte[] data, int off, int len)
           
protected abstract  void readMsg()
           
protected  byte[] unwrap(byte[] msg)
           
 
Methods inherited from class java.io.InputStream
mark, markSupported, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

in

protected InputStream in

context

protected GSSContext context

buff

protected byte[] buff

index

protected int index
Constructor Detail

GssInputStream

public GssInputStream(InputStream in,
                      GSSContext context)
Method Detail

unwrap

protected byte[] unwrap(byte[] msg)
                 throws IOException
Throws:
IOException

readMsg

protected abstract void readMsg()
                         throws IOException
Throws:
IOException

read

public int read(byte[] data)
         throws IOException
Throws:
IOException

read

public int read(byte[] data,
                int off,
                int len)
         throws IOException
Throws:
IOException

read

public int read()
         throws IOException
Throws:
IOException

hasData

protected boolean hasData()
                   throws IOException
Throws:
IOException

close

public void close()
           throws IOException
Throws:
IOException

available

public int available()
              throws IOException
Throws:
IOException