public class HttpSecureProtocol extends SSLClient implements SecureProtocolSocketFactory
| Constructor and Description |
|---|
HttpSecureProtocol() |
| Modifier and Type | Method and Description |
|---|---|
Socket |
createSocket(String host,
int port,
InetAddress localAddress,
int localPort,
HttpConnectionParams params)
Attempts to get a new socket connection to the given host within the
given time limit.
|
addTrustMaterial, createSocket, createSocket, createSocket, createSocket, createSocket, createSocket, createSocket, getAssociatedCertificateChain, getCheckCRL, getCheckExpiry, getCheckHostname, getConnectTimeout, getCurrentServerChain, getDefaultCipherSuites, getDefaultProtocol, getEnabledCiphers, getEnabledProtocols, getHostnameVerifier, getNeedClientAuth, getSoTimeout, getSSLContext, getSSLWrapperFactory, getSupportedCipherSuites, getTrustChain, getUseClientMode, getWantClientAuth, isSecure, setCheckCRL, setCheckExpiry, setCheckHostname, setConnectTimeout, setDefaultProtocol, setDnsOverride, setEnabledCiphers, setEnabledProtocols, setHostnameVerifier, setIsSecure, setKeyMaterial, setNeedClientAuth, setSoTimeout, setSSLWrapperFactory, setTrustMaterial, setUseClientMode, setWantClientAuthcreateSocket, getDefaultclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateSocketcreateSocket, createSocketpublic HttpSecureProtocol() throws GeneralSecurityException, IOException
GeneralSecurityExceptionIOExceptionpublic Socket createSocket(String host, int port, InetAddress localAddress, int localPort, HttpConnectionParams params) throws IOException
ConnectTimeoutException
createSocket in interface ProtocolSocketFactoryhost - the host name/IPport - the port on the hostlocalAddress - the local host name/IP to bind the socket tolocalPort - the port on the local machineparams - Http connection parametersIOException - if an I/O error occurs while creating the socketUnknownHostException - if the IP address of the host cannot be
determined