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, toString
bind, connect, connect, getChannel, getLocalSocketAddress, getOOBInline, getRemoteSocketAddress, getReuseAddress, getTrafficClass, isBound, isClosed, isConnected, isInputShutdown, isOutputShutdown, sendUrgentData, setOOBInline, setPerformancePreferences, setReuseAddress, setSocketImplFactory, setTrafficClass
protected 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
IOException
public 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
IOException
protected abstract byte[] readToken() throws IOException
IOException
protected void authenticateClient() throws IOException, GSSException
IOException
GSSException
protected void authenticateServer() throws IOException, GSSException
IOException
GSSException
public void startHandshake() throws IOException
IOException
public OutputStream getOutputStream() throws IOException
getOutputStream
in class WrappedSocket
IOException
public InputStream getInputStream() throws IOException
getInputStream
in class WrappedSocket
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class WrappedSocket
IOException
Copyright © 2016. All rights reserved.