Package com.ibm.websphere.ssl
Interface JSSEProvider
public interface JSSEProvider
JSSE provider utility interface.
This is the interface for the various JSSEProviders. For v7, mostly IBMJSSE2 is used, but for the pluggable client it could be SunJSSE.
- Since:
- WAS 7.0
-
Method Summary
Modifier and TypeMethodDescriptionString[]
getCiphersForSecurityLevel
(boolean isClient, String securityLevel) Query all encryption ciphers for the specified security level supported by this provider.Get the name of the context provider, ie.Query the default protocol value for this provider, ie.Get the name of key manager for this provider, ie "SunX509".Get the key manager factory for this provider.getKeyStoreInstance
(String keystoretype, String keystoreprovider) Get a keystore instance for the provided information.Get the name of the keystore provider, ie.Get the package and class name of the socket factory for this provider.getSSLContext
(Map<String, Object> connectionInfo, SSLConfig config) Access the SSLContext instance that matchs the provided configuration and connection information.getSSLContextInstance
(SSLConfig config) Access the SSLContext instance that matchs the provided configuration.Query the package for the HTTPS classes for this provider.getSSLServerSocketFactory
(SSLConfig config) Get the SSL socket factory that matchs the provided parameters.getSSLSocketFactory
(Map<String, Object> connectionInfo, SSLConfig config) Get the SSL socket factory that matchs the provided parameters.Get the name of the trust manager for this provider, ie.Get the trust manager factory for this provider.getURLStreamHandler
(SSLConfig config) Get the URL stream handler for the given configuration.void
setServerDefaultSSLContext
(SSLConfig sslConfig) Set the default SSL factory for the server.
-
Method Details
-
getSSLProtocolPackageHandler
String getSSLProtocolPackageHandler()Query the package for the HTTPS classes for this provider.- Returns:
- String
-
getDefaultProtocol
String getDefaultProtocol()Query the default protocol value for this provider, ie. SSL, TLS, etc.- Returns:
- String
-
getCiphersForSecurityLevel
Query all encryption ciphers for the specified security level supported by this provider.- Parameters:
isClient
-securityLevel
-- Returns:
- String[]
-
getSSLContextInstance
Access the SSLContext instance that matchs the provided configuration.- Parameters:
config
-- Returns:
- SSLContext
- Throws:
SSLException
-
getSSLContext
Access the SSLContext instance that matchs the provided configuration and connection information.- Parameters:
connectionInfo
-config
-- Returns:
- SSLContext
- Throws:
Exception
-
getURLStreamHandler
Get the URL stream handler for the given configuration.- Parameters:
config
-- Returns:
- URLStreamHandler
- Throws:
Exception
-
getSSLSocketFactory
SSLSocketFactory getSSLSocketFactory(Map<String, Object> connectionInfo, SSLConfig config) throws ExceptionGet the SSL socket factory that matchs the provided parameters.- Parameters:
connectionInfo
-config
-- Returns:
- SSLSocketFactory
- Throws:
Exception
-
getSSLServerSocketFactory
Get the SSL socket factory that matchs the provided parameters.- Parameters:
config
-- Returns:
- SSLSocketFactory
- Throws:
SSLException
-
getTrustManagerFactoryInstance
TrustManagerFactory getTrustManagerFactoryInstance() throws NoSuchAlgorithmException, NoSuchProviderExceptionGet the trust manager factory for this provider.- Returns:
- TrustManagerFactory
- Throws:
NoSuchAlgorithmException
NoSuchProviderException
-
getKeyManagerFactoryInstance
KeyManagerFactory getKeyManagerFactoryInstance() throws NoSuchAlgorithmException, NoSuchProviderExceptionGet the key manager factory for this provider.- Returns:
- KeyManagerFactory
- Throws:
NoSuchAlgorithmException
NoSuchProviderException
-
getKeyStoreInstance
KeyStore getKeyStoreInstance(String keystoretype, String keystoreprovider) throws KeyStoreException, NoSuchProviderException Get a keystore instance for the provided information.- Parameters:
keystoretype
-keystoreprovider
-- Returns:
- KeyStore
- Throws:
KeyStoreException
NoSuchProviderException
-
getKeyManager
String getKeyManager()Get the name of key manager for this provider, ie "SunX509".- Returns:
- String
-
getTrustManager
String getTrustManager()Get the name of the trust manager for this provider, ie. "SunX509".- Returns:
- String
-
getContextProvider
String getContextProvider()Get the name of the context provider, ie. "SunJSSE".- Returns:
- String
-
getKeyStoreProvider
String getKeyStoreProvider()Get the name of the keystore provider, ie. "SUN".- Returns:
- String
-
getSocketFactory
String getSocketFactory()Get the package and class name of the socket factory for this provider.- Returns:
- String
-
setServerDefaultSSLContext
Set the default SSL factory for the server.- Throws:
SSLException
Exception
-