public final class SSLContexts extends Object
SSLContext factory methods.
 
 Please note: the default Oracle JSSE implementation of
 SSLContext#init(KeyManager[], TrustManager[], SecureRandom)
 accepts multiple key and trust managers, however only only first matching type is ever used.
 See for example:
 
 SSLContext.html#init
 
| Modifier and Type | Method and Description | 
|---|---|
| static SSLContext | createDefault()Creates default factory based on the standard JSSE trust material
 ( cacertsfile in the security properties directory). | 
| static SSLContext | createSystemDefault()Creates default SSL context based on system properties. | 
| static SSLContextBuilder | custom()Creates custom SSL context. | 
public static SSLContext createDefault() throws SSLInitializationException
cacerts file in the security properties directory). System properties
 are not taken into consideration.SSLInitializationException - if NoSuchAlgorithmException or KeyManagementException
 are thrown when invoking SSLContext.getInstance(String)public static SSLContext createSystemDefault() throws SSLInitializationException
SSLContext.getInstance("Default").
 Please note that Default algorithm is supported as of Java 6.
 This method will fall back onto createDefault() when
 Default algorithm is not available.SSLInitializationException - if createDefault() throws itpublic static SSLContextBuilder custom()
Copyright © 2005–2022 The Apache Software Foundation. All rights reserved.