public abstract class GssSocket extends WrappedSocket
| Modifier and Type | Field and Description |
|---|---|
protected Authorization |
authorization |
protected boolean |
clientMode |
protected GSSContext |
context |
static int |
GSI_MODE |
protected InputStream |
in |
protected int |
mode |
protected OutputStream |
out |
static int |
SSL_MODE |
socket| Constructor and Description |
|---|
GssSocket(Socket socket,
GSSContext context) |
GssSocket(String host,
int port,
GSSContext context) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
authenticateClient() |
protected void |
authenticateServer() |
void |
close()
Disposes of the context and closes the connection
|
Authorization |
getAuthorization() |
boolean |
getClientMode() |
GSSContext |
getContext() |
InputStream |
getInputStream() |
OutputStream |
getOutputStream() |
int |
getWrapMode() |
protected abstract byte[] |
readToken() |
void |
setAuthorization(Authorization auth) |
void |
setUseClientMode(boolean clientMode) |
void |
setWrapMode(int mode) |
void |
startHandshake() |
protected abstract void |
writeToken(byte[] token) |
getInetAddress, getKeepAlive, getLocalAddress, getLocalPort, getPort, getReceiveBufferSize, getSendBufferSize, getSoLinger, getSoTimeout, getTcpNoDelay, getWrappedSocket, setKeepAlive, setReceiveBufferSize, setSendBufferSize, setSoLinger, setSoTimeout, setTcpNoDelay, shutdownInput, shutdownOutput, toStringbind, connect, connect, getChannel, getLocalSocketAddress, getOOBInline, getRemoteSocketAddress, getReuseAddress, getTrafficClass, isBound, isClosed, isConnected, isInputShutdown, isOutputShutdown, sendUrgentData, setOOBInline, setPerformancePreferences, setReuseAddress, setSocketImplFactory, setTrafficClassprotected GSSContext context
protected boolean clientMode
protected InputStream in
protected OutputStream out
protected Authorization authorization
public static final int SSL_MODE
public static final int GSI_MODE
protected int mode
public GssSocket(String host, int port, GSSContext context) throws IOException
IOExceptionpublic GssSocket(Socket socket, GSSContext context)
public void setAuthorization(Authorization auth)
public Authorization getAuthorization()
public void setUseClientMode(boolean clientMode)
public boolean getClientMode()
public void setWrapMode(int mode)
public int getWrapMode()
public GSSContext getContext()
protected abstract void writeToken(byte[] token)
throws IOException
IOExceptionprotected abstract byte[] readToken()
throws IOException
IOExceptionprotected void authenticateClient()
throws IOException,
GSSException
IOExceptionGSSExceptionprotected void authenticateServer()
throws IOException,
GSSException
IOExceptionGSSExceptionpublic void startHandshake()
throws IOException
IOExceptionpublic OutputStream getOutputStream() throws IOException
getOutputStream in class WrappedSocketIOExceptionpublic InputStream getInputStream() throws IOException
getInputStream in class WrappedSocketIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class WrappedSocketIOExceptionCopyright © 2013. All Rights Reserved.