Package org.apache.http.conn.ssl
Class SSLContexts
- java.lang.Object
-
- org.apache.http.conn.ssl.SSLContexts
-
@Contract(threading=IMMUTABLE) @Deprecated public class SSLContexts extends java.lang.Object
Deprecated.(4.4) useSSLContexts.SSLContextfactory methods.- Since:
- 4.3
-
-
Constructor Summary
Constructors Constructor Description SSLContexts()Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static javax.net.ssl.SSLContextcreateDefault()Deprecated.Creates default factory based on the standard JSSE trust material (cacertsfile in the security properties directory).static javax.net.ssl.SSLContextcreateSystemDefault()Deprecated.Creates default SSL context based on system properties.static SSLContextBuildercustom()Deprecated.Creates custom SSL context.
-
-
-
Method Detail
-
createDefault
public static javax.net.ssl.SSLContext createDefault() throws SSLInitializationExceptionDeprecated.Creates default factory based on the standard JSSE trust material (cacertsfile in the security properties directory). System properties are not taken into consideration.- Returns:
- the default SSL socket factory
- Throws:
SSLInitializationException
-
createSystemDefault
public static javax.net.ssl.SSLContext createSystemDefault() throws SSLInitializationExceptionDeprecated.Creates default SSL context based on system properties. This method obtains default SSL context by callingSSLContext.getInstance("Default"). Please note thatDefaultalgorithm is supported as of Java 6. This method will fall back ontocreateDefault()whenDefaultalgorithm is not available.- Returns:
- default system SSL context
- Throws:
SSLInitializationException
-
custom
public static SSLContextBuilder custom()
Deprecated.Creates custom SSL context.- Returns:
- default system SSL context
-
-