public class SPNEGOSocket extends Socket
Constructor and Description |
---|
SPNEGOSocket() |
SPNEGOSocket(InetAddress address,
int port) |
SPNEGOSocket(InetAddress address,
int port,
InetAddress localAddr,
int localPort) |
SPNEGOSocket(String host,
int port) |
SPNEGOSocket(String host,
int port,
InetAddress localAddr,
int localPort) |
Modifier and Type | Method and Description |
---|---|
void |
connect(SocketAddress endpoint) |
void |
connect(SocketAddress endpoint,
int timeout)
Tries to establish a
GSSContext with the server using the tokens. |
protected PrivilegedAction<Object> |
getPrivilegedAction()
Instantiates a
PrivilegedAction . |
protected Subject |
login()
Performs a JAAS login on the client side.
|
protected void |
logout()
Performs a JAAS logout on the client side.
|
bind, close, getChannel, getInetAddress, getInputStream, getKeepAlive, getLocalAddress, getLocalPort, getLocalSocketAddress, getOOBInline, getOutputStream, getPort, getReceiveBufferSize, getRemoteSocketAddress, getReuseAddress, getSendBufferSize, getSoLinger, getSoTimeout, getTcpNoDelay, getTrafficClass, isBound, isClosed, isConnected, isInputShutdown, isOutputShutdown, sendUrgentData, setKeepAlive, setOOBInline, setPerformancePreferences, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setSocketImplFactory, setSoLinger, setSoTimeout, setTcpNoDelay, setTrafficClass, shutdownInput, shutdownOutput, toString
protected static Logger log
public SPNEGOSocket()
Socket.Socket()
public SPNEGOSocket(InetAddress address, int port, InetAddress localAddr, int localPort) throws IOException
IOException
Socket.Socket(InetAddress, int, InetAddress, int)
public SPNEGOSocket(InetAddress address, int port) throws IOException
IOException
Socket.Socket(InetAddress, int)
public SPNEGOSocket(String host, int port, InetAddress localAddr, int localPort) throws IOException
IOException
Socket.Socket(String, int, InetAddress, int)
public SPNEGOSocket(String host, int port) throws UnknownHostException, IOException
UnknownHostException
IOException
Socket.Socket(String, int)
public void connect(SocketAddress endpoint) throws IOException
connect
in class Socket
IOException
Socket.connect(SocketAddress)
public void connect(SocketAddress endpoint, int timeout) throws IOException
GSSContext
with the server using the tokens.connect
in class Socket
IOException
Socket.connect(SocketAddress, int)
protected Subject login() throws LoginException
Subject
LoginException
- if the login failsprotected void logout() throws LoginException
LoginException
- if the logout failsprotected PrivilegedAction<Object> getPrivilegedAction()
PrivilegedAction
.PrivilegedAction
implementation that will establish the GSSContext
Copyright © 2018 JBoss by Red Hat. All rights reserved.