Constructors Summary |
---|
protected SSLSocket()Only to be used by subclasses.
Creates a TCP socket.
super();
|
protected SSLSocket(String host, int port)Only to be used by subclasses.
Creates a TCP socket connection to the specified host at the specified
port.
super(host, port);
|
protected SSLSocket(InetAddress address, int port)Only to be used by subclasses.
Creates a TCP socket connection to the specified address at the specified
port.
super(address, port);
|
protected SSLSocket(String host, int port, InetAddress clientAddress, int clientPort)Only to be used by subclasses.
Creates a TCP socket connection to the specified host at the specified
port with the client side bound to the specified address and port.
super(host, port, clientAddress, clientPort);
|
protected SSLSocket(InetAddress address, int port, InetAddress clientAddress, int clientPort)Only to be used by subclasses.
Creates a TCP socket connection to the specified address at the specified
port with the client side bound to the specified address and port.
super(address, port, clientAddress, clientPort);
|
Methods Summary |
---|
public abstract void | addHandshakeCompletedListener(javax.net.ssl.HandshakeCompletedListener listener)Registers the specified listener to receive notification on completion of a
handshake on this connection.
|
public abstract boolean | getEnableSessionCreation()Returns whether new SSL sessions may be created by this socket or if
existing sessions must be reused.
|
public abstract java.lang.String[] | getEnabledCipherSuites()Returns the names of the enabled cipher suites.
|
public abstract java.lang.String[] | getEnabledProtocols()Returns the names of the enabled protocols.
|
public abstract boolean | getNeedClientAuth()Returns whether this connection requires client authentication.
This is only useful for sockets in server mode.
|
public abstract javax.net.ssl.SSLSession | getSession()Returns the {@code SSLSession} for this connection. If necessary, a
handshake will be initiated, in which case this method will block until the handshake
has been established. If the handshake fails, an invalid session object
will be returned.
|
public abstract java.lang.String[] | getSupportedCipherSuites()Returns the names of the supported cipher suites.
|
public abstract java.lang.String[] | getSupportedProtocols()Returns the names of the supported protocols.
|
public abstract boolean | getUseClientMode()Returns whether this connection will act in client mode when handshaking.
|
public abstract boolean | getWantClientAuth()Returns whether this connections will request client authentication.
|
public abstract void | removeHandshakeCompletedListener(javax.net.ssl.HandshakeCompletedListener listener)Removes the specified handshake completion listener.
|
public abstract void | setEnableSessionCreation(boolean flag)Sets whether new SSL sessions may be created by this socket or if
existing sessions must be reused.
|
public abstract void | setEnabledCipherSuites(java.lang.String[] suites)Sets the names of the cipher suites to be enabled.
Only cipher suites returned by {@link #getSupportedCipherSuites()} are
allowed.
|
public abstract void | setEnabledProtocols(java.lang.String[] protocols)Sets the names of the protocols to be enabled. Only
protocols returned by {@link #getSupportedProtocols()} are allowed.
|
public abstract void | setNeedClientAuth(boolean need)Sets whether this connection should require client authentication. This
is only useful for sockets in server mode. The client authentication is
one of the following:
- authentication required
- authentication requested
- no authentication needed
This method overrides the setting of {@link #setWantClientAuth(boolean)}.
|
public abstract void | setUseClientMode(boolean mode)Sets whether this connection should act in client mode when handshaking.
|
public abstract void | setWantClientAuth(boolean want)Sets whether this connections should request client authentication. This
is only useful for sockets in server mode. The client authentication is
one of:
- authentication required
- authentication requested
- no authentication needed
This method overrides the setting of {@link #setNeedClientAuth(boolean)}.
|
public abstract void | startHandshake()Starts a new SSL handshake on this connection.
|