org.globus.gsi.gssapi.net
Class GssSocket
java.lang.Object
java.net.Socket
org.globus.net.WrappedSocket
org.globus.gsi.gssapi.net.GssSocket
- Direct Known Subclasses:
- GSIGssSocket
public abstract class GssSocket
- extends WrappedSocket
Constructor Summary |
GssSocket(java.net.Socket socket,
org.ietf.jgss.GSSContext context)
|
GssSocket(java.lang.String host,
int port,
org.ietf.jgss.GSSContext context)
|
Methods inherited from class org.globus.net.WrappedSocket |
getInetAddress, getKeepAlive, getLocalAddress, getLocalPort, getPort, getReceiveBufferSize, getSendBufferSize, getSoLinger, getSoTimeout, getTcpNoDelay, getWrappedSocket, setKeepAlive, setReceiveBufferSize, setSendBufferSize, setSoLinger, setSoTimeout, setTcpNoDelay, shutdownInput, shutdownOutput, toString |
Methods inherited from class java.net.Socket |
bind, connect, connect, getChannel, getLocalSocketAddress, getOOBInline, getRemoteSocketAddress, getReuseAddress, getTrafficClass, isBound, isClosed, isConnected, isInputShutdown, isOutputShutdown, sendUrgentData, setOOBInline, setPerformancePreferences, setReuseAddress, setSocketImplFactory, setTrafficClass |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
context
protected org.ietf.jgss.GSSContext context
clientMode
protected boolean clientMode
in
protected java.io.InputStream in
out
protected java.io.OutputStream out
authorization
protected Authorization authorization
SSL_MODE
public static final int SSL_MODE
- See Also:
- Constant Field Values
GSI_MODE
public static final int GSI_MODE
- See Also:
- Constant Field Values
mode
protected int mode
GssSocket
public GssSocket(java.lang.String host,
int port,
org.ietf.jgss.GSSContext context)
throws java.io.IOException
- Throws:
java.io.IOException
GssSocket
public GssSocket(java.net.Socket socket,
org.ietf.jgss.GSSContext context)
setAuthorization
public void setAuthorization(Authorization auth)
getAuthorization
public Authorization getAuthorization()
setUseClientMode
public void setUseClientMode(boolean clientMode)
getClientMode
public boolean getClientMode()
setWrapMode
public void setWrapMode(int mode)
getWrapMode
public int getWrapMode()
getContext
public org.ietf.jgss.GSSContext getContext()
writeToken
protected abstract void writeToken(byte[] token)
throws java.io.IOException
- Throws:
java.io.IOException
readToken
protected abstract byte[] readToken()
throws java.io.IOException
- Throws:
java.io.IOException
authenticateClient
protected void authenticateClient()
throws java.io.IOException,
org.ietf.jgss.GSSException
- Throws:
java.io.IOException
org.ietf.jgss.GSSException
authenticateServer
protected void authenticateServer()
throws java.io.IOException,
org.ietf.jgss.GSSException
- Throws:
java.io.IOException
org.ietf.jgss.GSSException
startHandshake
public void startHandshake()
throws java.io.IOException
- Throws:
java.io.IOException
getOutputStream
public java.io.OutputStream getOutputStream()
throws java.io.IOException
- Overrides:
getOutputStream
in class WrappedSocket
- Throws:
java.io.IOException
getInputStream
public java.io.InputStream getInputStream()
throws java.io.IOException
- Overrides:
getInputStream
in class WrappedSocket
- Throws:
java.io.IOException
close
public void close()
throws java.io.IOException
- Disposes of the context and closes the connection
- Overrides:
close
in class WrappedSocket
- Throws:
java.io.IOException