@Immutable public class SSLContexts extends Object
SSLContext factory methods.| Constructor and Description |
|---|
SSLContexts() |
| Modifier and Type | Method and Description |
|---|---|
static SSLContext |
createDefault()
Creates default factory based on the standard JSSE trust material
(
cacerts file 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 final SSLContext createDefault() throws SSLInitializationException
cacerts file in the security properties directory). System properties
are not taken into consideration.SSLInitializationExceptionpublic static final 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.SSLInitializationExceptionpublic static final SSLContextBuilder custom()
Copyright © 1999-2013 The Apache Software Foundation. All Rights Reserved.