public class SecureSocketsRegistrar
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private static CentralLogger |
LOG
Logger.
|
| Constructor and Description |
|---|
SecureSocketsRegistrar() |
| Modifier and Type | Method and Description |
|---|---|
static javax.net.ssl.SSLContext |
register(BootstrapConfig bc,
boolean createContext)
Register JCE/JSSE provider and optionally create SSLContext
|
private static final CentralLogger LOG
public static javax.net.ssl.SSLContext register(BootstrapConfig bc, boolean createContext) throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException, ConfigurationException
bc - bootstrap configcreateContext - flag indicating that SSLContext should be createdbull if not required.java.security.NoSuchAlgorithmException - if "TLS" algorithm is not supported by a selected providerjava.security.NoSuchProviderException - if unknown provider was specifiedConfigurationException - if boostrap configuration is incorrect