public interface BCSSLSocket
SSLSocket
implementations.Modifier and Type | Method and Description |
---|---|
void |
connect(java.lang.String host,
int port,
int timeout) |
java.lang.String |
getApplicationProtocol() |
BCApplicationProtocolSelector<javax.net.ssl.SSLSocket> |
getBCHandshakeApplicationProtocolSelector() |
BCExtendedSSLSession |
getBCHandshakeSession() |
BCExtendedSSLSession |
getBCSession() |
BCSSLConnection |
getConnection()
Returns an accessor for extended SSL connection data.
|
java.lang.String |
getHandshakeApplicationProtocol() |
BCSSLParameters |
getParameters()
Returns a
BCSSLParameters with properties reflecting the current configuration. |
void |
setBCHandshakeApplicationProtocolSelector(BCApplicationProtocolSelector<javax.net.ssl.SSLSocket> selector) |
void |
setBCSessionToResume(BCExtendedSSLSession session) |
void |
setHost(java.lang.String host)
Allows explicit setting of the 'host'
String when the SocketFactory methods
that include it as an argument are not used. |
void |
setParameters(BCSSLParameters parameters)
Sets parameters according to the properties in a
BCSSLParameters . |
void connect(java.lang.String host, int port, int timeout) throws java.io.IOException
java.io.IOException
java.lang.String getApplicationProtocol()
BCApplicationProtocolSelector<javax.net.ssl.SSLSocket> getBCHandshakeApplicationProtocolSelector()
void setBCHandshakeApplicationProtocolSelector(BCApplicationProtocolSelector<javax.net.ssl.SSLSocket> selector)
void setBCSessionToResume(BCExtendedSSLSession session)
BCExtendedSSLSession getBCHandshakeSession()
BCExtendedSSLSession getBCSession()
BCSSLConnection getConnection()
null
.BCSSLConnection
instance.java.lang.String getHandshakeApplicationProtocol()
BCSSLParameters getParameters()
BCSSLParameters
with properties reflecting the current configuration.parameters
void setHost(java.lang.String host)
String
when the SocketFactory
methods
that include it as an argument are not used.
Must be called prior to attempting to connect the socket to have any effect.
host
- the server host name with which to connect, or null
for the loopback
address.void setParameters(BCSSLParameters parameters)
BCSSLParameters
.
Note that any properties set to null will be ignored, which will leave the corresponding settings unchanged.
parameters
- the parameters
to setjava.lang.IllegalArgumentException
- if the cipherSuites or protocols properties contain unsupported values