Package org.conscrypt
Class OpenSSLSocketFactoryImpl
java.lang.Object
javax.net.SocketFactory
javax.net.ssl.SSLSocketFactory
org.conscrypt.OpenSSLSocketFactoryImpl
An implementation of
SSLSocketFactory
based on BoringSSL.
This name of this class cannot change in order to maintain backward-compatibility with GMS
core ProviderInstallerImpl
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final IOException
private final SSLParametersImpl
private boolean
private static boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateSocket
(String hostname, int port) createSocket
(String hostname, int port, InetAddress localHost, int localPort) createSocket
(InetAddress address, int port) createSocket
(InetAddress address, int port, InetAddress localAddress, int localPort) createSocket
(Socket socket, String hostname, int port, boolean autoClose) String[]
String[]
private boolean
(package private) void
setUseEngineSocket
(boolean useEngineSocket) Configures the socket to be created for this instance.(package private) static void
setUseEngineSocketByDefault
(boolean useEngineSocket) Configures the default socket type to be created for the default and all new instances.Methods inherited from class javax.net.ssl.SSLSocketFactory
createSocket, getDefault
-
Field Details
-
useEngineSocketByDefault
private static boolean useEngineSocketByDefault -
sslParameters
-
instantiationException
-
useEngineSocket
private boolean useEngineSocket
-
-
Constructor Details
-
OpenSSLSocketFactoryImpl
OpenSSLSocketFactoryImpl() -
OpenSSLSocketFactoryImpl
OpenSSLSocketFactoryImpl(SSLParametersImpl sslParameters)
-
-
Method Details
-
setUseEngineSocketByDefault
static void setUseEngineSocketByDefault(boolean useEngineSocket) Configures the default socket type to be created for the default and all new instances. -
setUseEngineSocket
void setUseEngineSocket(boolean useEngineSocket) Configures the socket to be created for this instance. If not called,useEngineSocketByDefault
will be used. -
getDefaultCipherSuites
- Specified by:
getDefaultCipherSuites
in classSSLSocketFactory
-
getSupportedCipherSuites
- Specified by:
getSupportedCipherSuites
in classSSLSocketFactory
-
createSocket
- Overrides:
createSocket
in classSocketFactory
- Throws:
IOException
-
createSocket
- Specified by:
createSocket
in classSocketFactory
- Throws:
IOException
UnknownHostException
-
createSocket
public Socket createSocket(String hostname, int port, InetAddress localHost, int localPort) throws IOException, UnknownHostException - Specified by:
createSocket
in classSocketFactory
- Throws:
IOException
UnknownHostException
-
createSocket
- Specified by:
createSocket
in classSocketFactory
- Throws:
IOException
-
createSocket
public Socket createSocket(InetAddress address, int port, InetAddress localAddress, int localPort) throws IOException - Specified by:
createSocket
in classSocketFactory
- Throws:
IOException
-
createSocket
public Socket createSocket(Socket socket, String hostname, int port, boolean autoClose) throws IOException - Specified by:
createSocket
in classSSLSocketFactory
- Throws:
IOException
-
hasFileDescriptor
-