Closeable
, AutoCloseable
GSIGssSocket
public abstract class GssSocket extends WrappedSocket
Modifier and Type | Field | 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 | Description |
---|---|
GssSocket(String host,
int port,
GSSContext context) |
|
GssSocket(Socket socket,
GSSContext context) |
Modifier and Type | Method | 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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
bind, connect, connect, getChannel, getLocalSocketAddress, getOOBInline, getOption, getRemoteSocketAddress, getReuseAddress, getTrafficClass, isBound, isClosed, isConnected, isInputShutdown, isOutputShutdown, sendUrgentData, setOOBInline, setOption, setPerformancePreferences, setReuseAddress, setSocketImplFactory, setTrafficClass, supportedOptions
getInetAddress, getKeepAlive, getLocalAddress, getLocalPort, getPort, getReceiveBufferSize, getSendBufferSize, getSoLinger, getSoTimeout, getTcpNoDelay, getWrappedSocket, setKeepAlive, setReceiveBufferSize, setSendBufferSize, setSoLinger, setSoTimeout, setTcpNoDelay, shutdownInput, shutdownOutput, toString
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 AutoCloseable
close
in interface Closeable
close
in class WrappedSocket
IOException
Copyright © 2018. All rights reserved.