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 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

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

      SSLContext getSSLContextInstance(SSLConfig config) throws SSLException
      Access the SSLContext instance that matchs the provided configuration.
      Parameters:
      config -
      Returns:
      SSLContext
      Throws:
      SSLException
    • getSSLContext

      SSLContext getSSLContext(Map<String,Object> connectionInfo, SSLConfig config) throws Exception
      Access the SSLContext instance that matchs the provided configuration and connection information.
      Parameters:
      connectionInfo -
      config -
      Returns:
      SSLContext
      Throws:
      Exception
    • getURLStreamHandler

      URLStreamHandler getURLStreamHandler(SSLConfig config) throws Exception
      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 Exception
      Get the SSL socket factory that matchs the provided parameters.
      Parameters:
      connectionInfo -
      config -
      Returns:
      SSLSocketFactory
      Throws:
      Exception
    • getSSLServerSocketFactory

      SSLServerSocketFactory getSSLServerSocketFactory(SSLConfig config) throws SSLException
      Get the SSL socket factory that matchs the provided parameters.
      Parameters:
      config -
      Returns:
      SSLSocketFactory
      Throws:
      SSLException
    • getTrustManagerFactoryInstance

      TrustManagerFactory getTrustManagerFactoryInstance() throws NoSuchAlgorithmException, NoSuchProviderException
      Get the trust manager factory for this provider.
      Returns:
      TrustManagerFactory
      Throws:
      NoSuchAlgorithmException
      NoSuchProviderException
    • getKeyManagerFactoryInstance

      Get 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

      void setServerDefaultSSLContext(SSLConfig sslConfig) throws SSLException, Exception
      Set the default SSL factory for the server.
      Throws:
      SSLException
      Exception