com.ibm.websphere.ssl

Interface JSSEProvider


  1. 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 Type Method and Description
  1. java.lang.String[]
getCiphersForSecurityLevel(boolean isClient,java.lang.String securityLevel)
Query all encryption ciphers for the specified security level supported by this provider.
  1. java.lang.String
getContextProvider()
Get the name of the context provider, ie.
  1. java.lang.String
getDefaultProtocol()
Query the default protocol value for this provider, ie.
  1. java.lang.String
getKeyManager()
Get the name of key manager for this provider, ie "SunX509".
  1. javax.net.ssl.KeyManagerFactory
getKeyManagerFactoryInstance()
Get the key manager factory for this provider.
  1. java.security.KeyStore
getKeyStoreInstance(java.lang.String keystoretype,java.lang.String keystoreprovider)
Get a keystore instance for the provided information.
  1. java.lang.String
getKeyStoreProvider()
Get the name of the keystore provider, ie.
  1. java.lang.String
getSocketFactory()
Get the package and class name of the socket factory for this provider.
  1. 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.
  1. javax.net.ssl.SSLContext
getSSLContextInstance(SSLConfig config)
Access the SSLContext instance that matchs the provided configuration.
  1. java.lang.String
getSSLProtocolPackageHandler()
Query the package for the HTTPS classes for this provider.
  1. javax.net.ssl.SSLServerSocketFactory
getSSLServerSocketFactory(SSLConfig config)
Get the SSL socket factory that matchs the provided parameters.
  1. 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.
  1. java.lang.String
getTrustManager()
Get the name of the trust manager for this provider, ie.
  1. javax.net.ssl.TrustManagerFactory
getTrustManagerFactoryInstance()
Get the trust manager factory for this provider.
  1. java.net.URLStreamHandler
getURLStreamHandler(SSLConfig config)
Get the URL stream handler for the given configuration.
  1. void
setServerDefaultSSLContext(SSLConfig sslConfig)
Set the default SSL factory for the server.

Method Detail

getSSLProtocolPackageHandler

  1. java.lang.String getSSLProtocolPackageHandler( )
Query the package for the HTTPS classes for this provider.
Returns:
String

getDefaultProtocol

  1. java.lang.String getDefaultProtocol( )
Query the default protocol value for this provider, ie. SSL, TLS, etc.
Returns:
String

getCiphersForSecurityLevel

  1. java.lang.String[] getCiphersForSecurityLevel( boolean isClient,
  2. java.lang.String securityLevel)
Query all encryption ciphers for the specified security level supported by this provider.
Parameters:
isClient -
securityLevel -
Returns:
String[]

getSSLContextInstance

  1. javax.net.ssl.SSLContext getSSLContextInstance( SSLConfig config)
  2. throws SSLException
Access the SSLContext instance that matchs the provided configuration.
Parameters:
config -
Returns:
SSLContext
Throws:

getSSLContext

  1. javax.net.ssl.SSLContext getSSLContext( java.util.Map<java.lang.String,java.lang.Object> connectionInfo,
  2. SSLConfig config)
  3. 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

  1. java.net.URLStreamHandler getURLStreamHandler( SSLConfig config)
  2. throws java.lang.Exception
Get the URL stream handler for the given configuration.
Parameters:
config -
Returns:
URLStreamHandler
Throws:
java.lang.Exception

getSSLSocketFactory

  1. javax.net.ssl.SSLSocketFactory getSSLSocketFactory( java.util.Map<java.lang.String,java.lang.Object> connectionInfo,
  2. SSLConfig config)
  3. throws java.lang.Exception
Get the SSL socket factory that matchs the provided parameters.
Parameters:
connectionInfo -
config -
Returns:
SSLSocketFactory
Throws:
java.lang.Exception

getSSLServerSocketFactory

  1. javax.net.ssl.SSLServerSocketFactory getSSLServerSocketFactory( SSLConfig config)
  2. throws SSLException
Get the SSL socket factory that matchs the provided parameters.
Parameters:
config -
Returns:
SSLSocketFactory
Throws:

getTrustManagerFactoryInstance

  1. javax.net.ssl.TrustManagerFactory getTrustManagerFactoryInstance( )
  2. throws java.security.NoSuchAlgorithmException
  3. java.security.NoSuchProviderException
Get the trust manager factory for this provider.
Returns:
TrustManagerFactory
Throws:
java.security.NoSuchAlgorithmException
java.security.NoSuchProviderException

getKeyManagerFactoryInstance

  1. javax.net.ssl.KeyManagerFactory getKeyManagerFactoryInstance( )
  2. throws java.security.NoSuchAlgorithmException
  3. java.security.NoSuchProviderException
Get the key manager factory for this provider.
Returns:
KeyManagerFactory
Throws:
java.security.NoSuchAlgorithmException
java.security.NoSuchProviderException

getKeyStoreInstance

  1. java.security.KeyStore getKeyStoreInstance( java.lang.String keystoretype,
  2. java.lang.String keystoreprovider)
  3. throws java.security.KeyStoreException
  4. java.security.NoSuchProviderException
Get a keystore instance for the provided information.
Parameters:
keystoretype -
keystoreprovider -
Returns:
KeyStore
Throws:
java.security.KeyStoreException
java.security.NoSuchProviderException

getKeyManager

  1. java.lang.String getKeyManager( )
Get the name of key manager for this provider, ie "SunX509".
Returns:
String

getTrustManager

  1. java.lang.String getTrustManager( )
Get the name of the trust manager for this provider, ie. "SunX509".
Returns:
String

getContextProvider

  1. java.lang.String getContextProvider( )
Get the name of the context provider, ie. "SunJSSE".
Returns:
String

getKeyStoreProvider

  1. java.lang.String getKeyStoreProvider( )
Get the name of the keystore provider, ie. "SUN".
Returns:
String

getSocketFactory

  1. java.lang.String getSocketFactory( )
Get the package and class name of the socket factory for this provider.
Returns:
String

setServerDefaultSSLContext

  1. void setServerDefaultSSLContext( SSLConfig sslConfig)
  2. throws SSLException
  3. java.lang.Exception
Set the default SSL factory for the server.
Throws:
java.lang.Exception