public class SSLs extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
static SSLContextBuilder |
customSSLContext()
Creates custom SSL context.
|
static SSLContext |
defaultSSLContext()
Creates default factory based on the standard JSSE trust material
(
cacerts file in the security properties directory). |
static X509TrustManager |
noopX509TrustManager() |
static SSLContext |
systemDefaultSSLContext()
Creates default SSL context based on system properties.
|
public static X509TrustManager noopX509TrustManager()
public static SSLContext defaultSSLContext() throws SSLInitializationException
cacerts file in the security properties directory). System properties
are not taken into consideration.SSLInitializationExceptionpublic static SSLContext systemDefaultSSLContext() throws SSLInitializationException
SSLContext.getInstance("Default").
Please note that Default algorithm is supported as of Java 6.
This method will fall back onto defaultSSLContext() when
Default algorithm is not available.SSLInitializationExceptionpublic static SSLContextBuilder customSSLContext()
Copyright © 2021. All rights reserved.