Package org.eclipse.ecf.core.security
Class ECFSSLContextFactory
java.lang.Object
org.eclipse.ecf.core.security.ECFSSLContextFactory
- All Implemented Interfaces:
SSLContextFactory
- Since:
- 3.12
-
Constructor Summary
ConstructorsConstructorDescriptionECFSSLContextFactory
(BundleContext context) ECFSSLContextFactory
(BundleContext context, String defaultProtocol) ECFSSLContextFactory
(BundleContext context, String defaultProtocol, String defaultProviderName) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
protected Provider
findProvider
(String providerName) See SSLContext.getDefault()
NOTE: Rather than the using the {@link #SSLContext.setDefault SSLContext.setDefault(SSLContext)} to set the default SSLContext as described in the SSLContext.getDefault() javadocs, the default for the implementer is set upon construction of the service instance.getInstance
(String protocol) getInstance
(String protocol, String providerName) protected SSLContext
getInstance0
(String protocol, String providerName)
-
Constructor Details
-
ECFSSLContextFactory
- Throws:
NoSuchAlgorithmException
-
ECFSSLContextFactory
public ECFSSLContextFactory(BundleContext context, String defaultProtocol) throws NoSuchAlgorithmException - Throws:
NoSuchAlgorithmException
-
ECFSSLContextFactory
public ECFSSLContextFactory(BundleContext context, String defaultProtocol, String defaultProviderName) throws NoSuchAlgorithmException - Throws:
NoSuchAlgorithmException
-
-
Method Details
-
getDefault
Description copied from interface:SSLContextFactory
See SSLContext.getDefault()
NOTE: Rather than the using the {@link #SSLContext.setDefault SSLContext.setDefault(SSLContext)} to set the default SSLContext as described in the SSLContext.getDefault() javadocs, the default for the implementer is set upon construction of the service instance.- Specified by:
getDefault
in interfaceSSLContextFactory
- Throws:
NoSuchAlgorithmException
NoSuchProviderException
-
getInstance0
protected SSLContext getInstance0(String protocol, String providerName) throws NoSuchAlgorithmException, NoSuchProviderException -
getInstance
public SSLContext getInstance(String protocol) throws NoSuchAlgorithmException, NoSuchProviderException Description copied from interface:SSLContextFactory
- Specified by:
getInstance
in interfaceSSLContextFactory
- Throws:
NoSuchAlgorithmException
NoSuchProviderException
-
close
public void close() -
findProvider
-
getInstance
public SSLContext getInstance(String protocol, String providerName) throws NoSuchAlgorithmException, NoSuchProviderException Description copied from interface:SSLContextFactory
- Specified by:
getInstance
in interfaceSSLContextFactory
- Throws:
NoSuchAlgorithmException
NoSuchProviderException
-