SSLSocketFactory

Class of org.apache.http.conn.ssl · SSLSocketFactory.java

public class SSLSocketFactory implements LayeredSocketFactory

TLS sockets, from the JDK's SSLContext with the key and trust stores given (the JDK's own when null).

Fields

public static final String TLS = "TLS" source
public static final String SSL = "SSL" source
public static final String SSLV2 = "SSLv2" source
public static final X509HostnameVerifier ALLOW_ALL_HOSTNAME_VERIFIER source
public static final X509HostnameVerifier BROWSER_COMPATIBLE_HOSTNAME_VERIFIER source
public static final X509HostnameVerifier STRICT_HOSTNAME_VERIFIER source

Constructors

public SSLSocketFactory(String algorithm, KeyStore keystore, String keystorePassword, KeyStore truststore, java.security.SecureRandom random, org.apache.http.conn.scheme.HostNameResolver nameResolver) throws NoSuchAlgorithmException, KeyManagementException, KeyStoreException, UnrecoverableKeyException source
public SSLSocketFactory(KeyStore keystore, String keystorePassword, KeyStore truststore) throws NoSuchAlgorithmException, KeyManagementException, KeyStoreException, UnrecoverableKeyException source
public SSLSocketFactory(KeyStore keystore, String keystorePassword) throws NoSuchAlgorithmException, KeyManagementException, KeyStoreException, UnrecoverableKeyException source
public SSLSocketFactory(KeyStore truststore) throws NoSuchAlgorithmException, KeyManagementException, KeyStoreException, UnrecoverableKeyException source
public SSLSocketFactory(javax.net.ssl.SSLSocketFactory socketfactory) source

Methods

public static SSLSocketFactory getSocketFactory() source
public Socket createSocket() throws IOException source
public Socket connectSocket(Socket sock, String host, int port, InetAddress localAddress, int localPort, HttpParams params) throws IOException source
public boolean isSecure(Socket sock) source
public Socket createSocket(Socket socket, String host, int port, boolean autoClose) throws IOException source
public void setHostnameVerifier(X509HostnameVerifier hostnameVerifier) source
public X509HostnameVerifier getHostnameVerifier() source

Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.