Package org.apache.http.conn.ssl
Class SSLContexts
java.lang.Object
org.apache.http.conn.ssl.SSLContexts
Deprecated.
SSLContext
factory methods.- Since:
- 4.3
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SSLContext
Deprecated.Creates default factory based on the standard JSSE trust material (cacerts
file in the security properties directory).static SSLContext
Deprecated.Creates default SSL context based on system properties.static SSLContextBuilder
custom()
Deprecated.Creates custom SSL context.
-
Constructor Details
-
SSLContexts
public SSLContexts()Deprecated.
-
-
Method Details
-
createDefault
Deprecated.Creates default factory based on the standard JSSE trust material (cacerts
file in the security properties directory). System properties are not taken into consideration.- Returns:
- the default SSL socket factory
- Throws:
SSLInitializationException
-
createSystemDefault
Deprecated.Creates default SSL context based on system properties. This method obtains default SSL context by callingSSLContext.getInstance("Default")
. Please note thatDefault
algorithm is supported as of Java 6. This method will fall back ontocreateDefault()
whenDefault
algorithm is not available.- Returns:
- default system SSL context
- Throws:
SSLInitializationException
-
custom
Deprecated.Creates custom SSL context.- Returns:
- default system SSL context
-
SSLContexts
.