Package com.ibm.websphere.ssl
Interface JSSEProvider
- 
 public interface JSSEProviderJSSE 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 SummaryAll 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.StringgetContextProvider()Get the name of the context provider, ie.java.lang.StringgetDefaultProtocol()Query the default protocol value for this provider, ie.java.lang.StringgetKeyManager()Get the name of key manager for this provider, ie "SunX509".javax.net.ssl.KeyManagerFactorygetKeyManagerFactoryInstance()Get the key manager factory for this provider.java.security.KeyStoregetKeyStoreInstance(java.lang.String keystoretype, java.lang.String keystoreprovider)Get a keystore instance for the provided information.java.lang.StringgetKeyStoreProvider()Get the name of the keystore provider, ie.java.lang.StringgetSocketFactory()Get the package and class name of the socket factory for this provider.javax.net.ssl.SSLContextgetSSLContext(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.SSLContextgetSSLContextInstance(SSLConfig config)Access the SSLContext instance that matchs the provided configuration.java.lang.StringgetSSLProtocolPackageHandler()Query the package for the HTTPS classes for this provider.javax.net.ssl.SSLServerSocketFactorygetSSLServerSocketFactory(SSLConfig config)Get the SSL socket factory that matchs the provided parameters.javax.net.ssl.SSLSocketFactorygetSSLSocketFactory(java.util.Map<java.lang.String,java.lang.Object> connectionInfo, SSLConfig config)Get the SSL socket factory that matchs the provided parameters.java.lang.StringgetTrustManager()Get the name of the trust manager for this provider, ie.javax.net.ssl.TrustManagerFactorygetTrustManagerFactoryInstance()Get the trust manager factory for this provider.java.net.URLStreamHandlergetURLStreamHandler(SSLConfig config)Get the URL stream handler for the given configuration.voidsetServerDefaultSSLContext(SSLConfig sslConfig)Set the default SSL factory for the server.
 
- 
- 
- 
Method Detail- 
getSSLProtocolPackageHandlerjava.lang.String getSSLProtocolPackageHandler() Query the package for the HTTPS classes for this provider.- Returns:
- String
 
 - 
getDefaultProtocoljava.lang.String getDefaultProtocol() Query the default protocol value for this provider, ie. SSL, TLS, etc.- Returns:
- String
 
 - 
getCiphersForSecurityLeveljava.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[]
 
 - 
getSSLContextInstancejavax.net.ssl.SSLContext getSSLContextInstance(SSLConfig config) throws SSLException Access the SSLContext instance that matchs the provided configuration.- Parameters:
- config-
- Returns:
- SSLContext
- Throws:
- SSLException
 
 - 
getSSLContextjavax.net.ssl.SSLContext getSSLContext(java.util.Map<java.lang.String,java.lang.Object> connectionInfo, SSLConfig config) throws java.lang.ExceptionAccess the SSLContext instance that matchs the provided configuration and connection information.- Parameters:
- connectionInfo-
- config-
- Returns:
- SSLContext
- Throws:
- java.lang.Exception
 
 - 
getURLStreamHandlerjava.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
 
 - 
getSSLSocketFactoryjavax.net.ssl.SSLSocketFactory getSSLSocketFactory(java.util.Map<java.lang.String,java.lang.Object> connectionInfo, SSLConfig config) throws java.lang.ExceptionGet the SSL socket factory that matchs the provided parameters.- Parameters:
- connectionInfo-
- config-
- Returns:
- SSLSocketFactory
- Throws:
- java.lang.Exception
 
 - 
getSSLServerSocketFactoryjavax.net.ssl.SSLServerSocketFactory getSSLServerSocketFactory(SSLConfig config) throws SSLException Get the SSL socket factory that matchs the provided parameters.- Parameters:
- config-
- Returns:
- SSLSocketFactory
- Throws:
- SSLException
 
 - 
getTrustManagerFactoryInstancejavax.net.ssl.TrustManagerFactory getTrustManagerFactoryInstance() throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderExceptionGet the trust manager factory for this provider.- Returns:
- TrustManagerFactory
- Throws:
- java.security.NoSuchAlgorithmException
- java.security.NoSuchProviderException
 
 - 
getKeyManagerFactoryInstancejavax.net.ssl.KeyManagerFactory getKeyManagerFactoryInstance() throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderExceptionGet the key manager factory for this provider.- Returns:
- KeyManagerFactory
- Throws:
- java.security.NoSuchAlgorithmException
- java.security.NoSuchProviderException
 
 - 
getKeyStoreInstancejava.security.KeyStore getKeyStoreInstance(java.lang.String keystoretype, java.lang.String keystoreprovider) throws java.security.KeyStoreException, java.security.NoSuchProviderExceptionGet a keystore instance for the provided information.- Parameters:
- keystoretype-
- keystoreprovider-
- Returns:
- KeyStore
- Throws:
- java.security.KeyStoreException
- java.security.NoSuchProviderException
 
 - 
getKeyManagerjava.lang.String getKeyManager() Get the name of key manager for this provider, ie "SunX509".- Returns:
- String
 
 - 
getTrustManagerjava.lang.String getTrustManager() Get the name of the trust manager for this provider, ie. "SunX509".- Returns:
- String
 
 - 
getContextProviderjava.lang.String getContextProvider() Get the name of the context provider, ie. "SunJSSE".- Returns:
- String
 
 - 
getKeyStoreProviderjava.lang.String getKeyStoreProvider() Get the name of the keystore provider, ie. "SUN".- Returns:
- String
 
 - 
getSocketFactoryjava.lang.String getSocketFactory() Get the package and class name of the socket factory for this provider.- Returns:
- String
 
 - 
setServerDefaultSSLContextvoid setServerDefaultSSLContext(SSLConfig sslConfig) throws SSLException, java.lang.Exception Set the default SSL factory for the server.- Throws:
- SSLException
- java.lang.Exception
 
 
- 
 
-