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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String[]
getCiphersForSecurityLevel(boolean isClient, java.lang.String securityLevel)
Query all encryption ciphers for the specified security level supported by this provider.java.lang.String
getContextProvider()
Get the name of the context provider, ie.java.lang.String
getDefaultProtocol()
Query the default protocol value for this provider, ie.java.lang.String
getKeyManager()
Get the name of key manager for this provider, ie "SunX509".javax.net.ssl.KeyManagerFactory
getKeyManagerFactoryInstance()
Get the key manager factory for this provider.java.security.KeyStore
getKeyStoreInstance(java.lang.String keystoretype, java.lang.String keystoreprovider)
Get a keystore instance for the provided information.java.lang.String
getKeyStoreProvider()
Get the name of the keystore provider, ie.java.lang.String
getSocketFactory()
Get the package and class name of the socket factory for this provider.javax.net.ssl.SSLContext
getSSLContext(java.util.Map<java.lang.String,java.lang.Object> connectionInfo, SSLConfig config)
Access the SSLContext instance that matchs the provided configuration and connection information.javax.net.ssl.SSLContext
getSSLContextInstance(SSLConfig config)
Access the SSLContext instance that matchs the provided configuration.java.lang.String
getSSLProtocolPackageHandler()
Query the package for the HTTPS classes for this provider.javax.net.ssl.SSLServerSocketFactory
getSSLServerSocketFactory(SSLConfig config)
Get the SSL socket factory that matchs the provided parameters.javax.net.ssl.SSLSocketFactory
getSSLSocketFactory(java.util.Map<java.lang.String,java.lang.Object> connectionInfo, SSLConfig config)
Get the SSL socket factory that matchs the provided parameters.java.lang.String
getTrustManager()
Get the name of the trust manager for this provider, ie.javax.net.ssl.TrustManagerFactory
getTrustManagerFactoryInstance()
Get the trust manager factory for this provider.java.net.URLStreamHandler
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 Detail
-
getSSLProtocolPackageHandler
java.lang.String getSSLProtocolPackageHandler()
Query the package for the HTTPS classes for this provider.- Returns:
- String
-
getDefaultProtocol
java.lang.String getDefaultProtocol()
Query the default protocol value for this provider, ie. SSL, TLS, etc.- Returns:
- String
-
getCiphersForSecurityLevel
java.lang.String[] getCiphersForSecurityLevel(boolean isClient, java.lang.String securityLevel)
Query all encryption ciphers for the specified security level supported by this provider.- Parameters:
isClient
-securityLevel
-- Returns:
- String[]
-
getSSLContextInstance
javax.net.ssl.SSLContext getSSLContextInstance(SSLConfig config) throws SSLException
Access the SSLContext instance that matchs the provided configuration.- Parameters:
config
-- Returns:
- SSLContext
- Throws:
SSLException
-
getSSLContext
javax.net.ssl.SSLContext getSSLContext(java.util.Map<java.lang.String,java.lang.Object> connectionInfo, SSLConfig config) throws java.lang.Exception
Access the SSLContext instance that matchs the provided configuration and connection information.- Parameters:
connectionInfo
-config
-- Returns:
- SSLContext
- Throws:
java.lang.Exception
-
getURLStreamHandler
java.net.URLStreamHandler getURLStreamHandler(SSLConfig config) throws java.lang.Exception
Get the URL stream handler for the given configuration.- Parameters:
config
-- Returns:
- URLStreamHandler
- Throws:
java.lang.Exception
-
getSSLSocketFactory
javax.net.ssl.SSLSocketFactory getSSLSocketFactory(java.util.Map<java.lang.String,java.lang.Object> connectionInfo, SSLConfig config) throws java.lang.Exception
Get the SSL socket factory that matchs the provided parameters.- Parameters:
connectionInfo
-config
-- Returns:
- SSLSocketFactory
- Throws:
java.lang.Exception
-
getSSLServerSocketFactory
javax.net.ssl.SSLServerSocketFactory getSSLServerSocketFactory(SSLConfig config) throws SSLException
Get the SSL socket factory that matchs the provided parameters.- Parameters:
config
-- Returns:
- SSLSocketFactory
- Throws:
SSLException
-
getTrustManagerFactoryInstance
javax.net.ssl.TrustManagerFactory getTrustManagerFactoryInstance() throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException
Get the trust manager factory for this provider.- Returns:
- TrustManagerFactory
- Throws:
java.security.NoSuchAlgorithmException
java.security.NoSuchProviderException
-
getKeyManagerFactoryInstance
javax.net.ssl.KeyManagerFactory getKeyManagerFactoryInstance() throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException
Get the key manager factory for this provider.- Returns:
- KeyManagerFactory
- Throws:
java.security.NoSuchAlgorithmException
java.security.NoSuchProviderException
-
getKeyStoreInstance
java.security.KeyStore getKeyStoreInstance(java.lang.String keystoretype, java.lang.String keystoreprovider) throws java.security.KeyStoreException, java.security.NoSuchProviderException
Get a keystore instance for the provided information.- Parameters:
keystoretype
-keystoreprovider
-- Returns:
- KeyStore
- Throws:
java.security.KeyStoreException
java.security.NoSuchProviderException
-
getKeyManager
java.lang.String getKeyManager()
Get the name of key manager for this provider, ie "SunX509".- Returns:
- String
-
getTrustManager
java.lang.String getTrustManager()
Get the name of the trust manager for this provider, ie. "SunX509".- Returns:
- String
-
getContextProvider
java.lang.String getContextProvider()
Get the name of the context provider, ie. "SunJSSE".- Returns:
- String
-
getKeyStoreProvider
java.lang.String getKeyStoreProvider()
Get the name of the keystore provider, ie. "SUN".- Returns:
- String
-
getSocketFactory
java.lang.String getSocketFactory()
Get the package and class name of the socket factory for this provider.- Returns:
- String
-
setServerDefaultSSLContext
void setServerDefaultSSLContext(SSLConfig sslConfig) throws SSLException, java.lang.Exception
Set the default SSL factory for the server.- Throws:
SSLException
java.lang.Exception
-
-