Class GssSocket
java.lang.Object
java.net.Socket
org.globus.net.WrappedSocket
org.globus.gsi.gssapi.net.GssSocket
- All Implemented Interfaces:
Closeable, AutoCloseable
- Direct Known Subclasses:
GSIGssSocket
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Authorizationprotected booleanprotected GSSContextstatic final intprotected InputStreamprivate static org.apache.commons.logging.Logprotected intprotected OutputStreamstatic final intFields inherited from class WrappedSocket
socket -
Constructor Summary
ConstructorsConstructorDescriptionGssSocket(String host, int port, GSSContext context) GssSocket(Socket socket, GSSContext context) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidvoidclose()Disposes of the context and closes the connectionbooleanintprotected abstract byte[]voidvoidsetUseClientMode(boolean clientMode) voidsetWrapMode(int mode) voidprotected abstract voidwriteToken(byte[] token) Methods inherited from class WrappedSocket
getInetAddress, getKeepAlive, getLocalAddress, getLocalPort, getPort, getReceiveBufferSize, getSendBufferSize, getSoLinger, getSoTimeout, getTcpNoDelay, getWrappedSocket, setKeepAlive, setReceiveBufferSize, setSendBufferSize, setSoLinger, setSoTimeout, setTcpNoDelay, shutdownInput, shutdownOutput, toStringMethods inherited from class Socket
bind, connect, connect, getChannel, getLocalSocketAddress, getOOBInline, getOption, getRemoteSocketAddress, getReuseAddress, getTrafficClass, isBound, isClosed, isConnected, isInputShutdown, isOutputShutdown, sendUrgentData, setOOBInline, setOption, setPerformancePreferences, setReuseAddress, setSocketImplFactory, setTrafficClass, supportedOptions
-
Field Details
-
logger
private static org.apache.commons.logging.Log logger -
context
-
clientMode
protected boolean clientMode -
in
-
out
-
authorization
-
SSL_MODE
public static final int SSL_MODE- See Also:
-
GSI_MODE
public static final int GSI_MODE- See Also:
-
mode
protected int mode
-
-
Constructor Details
-
GssSocket
- Throws:
IOException
-
GssSocket
-
-
Method Details
-
setAuthorization
-
getAuthorization
-
setUseClientMode
public void setUseClientMode(boolean clientMode) -
getClientMode
public boolean getClientMode() -
setWrapMode
public void setWrapMode(int mode) -
getWrapMode
public int getWrapMode() -
getContext
-
writeToken
- Throws:
IOException
-
readToken
- Throws:
IOException
-
authenticateClient
- Throws:
IOExceptionGSSException
-
authenticateServer
- Throws:
IOExceptionGSSException
-
startHandshake
- Throws:
IOException
-
getOutputStream
- Overrides:
getOutputStreamin classWrappedSocket- Throws:
IOException
-
getInputStream
- Overrides:
getInputStreamin classWrappedSocket- Throws:
IOException
-
close
Disposes of the context and closes the connection- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classWrappedSocket- Throws:
IOException
-