Class SslEngineConfigurator

java.lang.Object
org.glassfish.tyrus.container.jdk.client.SslEngineConfigurator

public class SslEngineConfigurator extends Object
Deprecated.
Please use SslEngineConfigurator.
SSLEngineConfigurator class from Grizzly project.

Utility class, which helps to configure SSLEngine. Should be passed to client via configuration properties. Example:

      SslContextConfigurator sslContextConfigurator = new SslContextConfigurator();
      sslContextConfigurator.setTrustStoreFile("...");
      sslContextConfigurator.setTrustStorePassword("...");
      sslContextConfigurator.setTrustStoreType("...");
      sslContextConfigurator.setKeyStoreFile("...");
      sslContextConfigurator.setKeyStorePassword("...");
      sslContextConfigurator.setKeyStoreType("...");
      SslEngineConfigurator sslEngineConfigurator = new SslEngineConfigurator(sslContextConfigurator, true, false,
 false);
      client.getProperties().put(ClientManager.SSL_ENGINE_CONFIGURATOR, sslEngineConfigurator);
 
Author:
Alexey Stashok
  • Field Details

    • sslContextConfiguration

      protected volatile SslContextConfigurator sslContextConfiguration
      Deprecated.
    • sslContext

      protected volatile SSLContext sslContext
      Deprecated.
    • enabledCipherSuites

      protected String[] enabledCipherSuites
      Deprecated.
      The list of cipher suites.
    • enabledProtocols

      protected String[] enabledProtocols
      Deprecated.
      The list of protocols.
    • clientMode

      protected boolean clientMode
      Deprecated.
      Client mode when handshaking.
    • needClientAuth

      protected boolean needClientAuth
      Deprecated.
      Require client Authentication.
    • wantClientAuth

      protected boolean wantClientAuth
      Deprecated.
      True when requesting authentication.
  • Constructor Details

    • SslEngineConfigurator

      public SslEngineConfigurator(SSLContext sslContext)
      Deprecated.
      Create SSL Engine configuration basing on passed SSLContext.
      Parameters:
      sslContext - SSLContext.
    • SslEngineConfigurator

      public SslEngineConfigurator(SSLContext sslContext, boolean clientMode, boolean needClientAuth, boolean wantClientAuth)
      Deprecated.
      Create SSL Engine configuration basing on passed SSLContext, using passed client mode, need/want client auth parameters.
      Parameters:
      sslContext - SSLContext.
      clientMode - will be configured to work in client mode.
      needClientAuth - client authentication is required.
      wantClientAuth - client should authenticate.
    • SslEngineConfigurator

      public SslEngineConfigurator(SslContextConfigurator sslContextConfiguration)
      Deprecated.
      Create SSL Engine configuration basing on passed SslContextConfigurator. This constructor makes possible to initialize SSLEngine and SSLContext in lazy fashion on first createSSLEngine() call.
      Parameters:
      sslContextConfiguration - SslContextConfigurator.
    • SslEngineConfigurator

      public SslEngineConfigurator(SslContextConfigurator sslContextConfiguration, boolean clientMode, boolean needClientAuth, boolean wantClientAuth)
      Deprecated.
      Create SSL Engine configuration basing on passed SslContextConfigurator. This constructor makes possible to initialize SSLEngine and SSLContext in lazy fashion on first createSSLEngine() call.
      Parameters:
      sslContextConfiguration - SslContextConfigurator.
      clientMode - will be configured to work in client mode.
      needClientAuth - client authentication is required.
      wantClientAuth - client should authenticate.
    • SslEngineConfigurator

      public SslEngineConfigurator(SslEngineConfigurator pattern)
      Deprecated.
    • SslEngineConfigurator

      protected SslEngineConfigurator()
      Deprecated.
      Default constructor.
  • Method Details

    • createSSLEngine

      public SSLEngine createSSLEngine()
      Deprecated.
      Create and configure SSLEngine, basing on current settings.
      Returns:
      SSLEngine.
    • configure

      public SSLEngine configure(SSLEngine sslEngine)
      Deprecated.
      Configure passed SSLEngine, using current configurator settings
      Parameters:
      sslEngine - SSLEngine to configure.
      Returns:
      configured SSLEngine.
    • isClientMode

      public boolean isClientMode()
      Deprecated.
      Will SSLEngine be configured to work in client mode.
      Returns:
      true, if SSLEngine will be configured to work in client mode, or false for server mode.
    • setClientMode

      public SslEngineConfigurator setClientMode(boolean clientMode)
      Deprecated.
      Set SSLEngine to be configured to work in client mode.
      Parameters:
      clientMode - true, if SSLEngine will be configured to work in client mode, or false for server mode.
      Returns:
      updated configurator instance.
    • isNeedClientAuth

      public boolean isNeedClientAuth()
      Deprecated.
    • setNeedClientAuth

      public SslEngineConfigurator setNeedClientAuth(boolean needClientAuth)
      Deprecated.
    • isWantClientAuth

      public boolean isWantClientAuth()
      Deprecated.
    • setWantClientAuth

      public SslEngineConfigurator setWantClientAuth(boolean wantClientAuth)
      Deprecated.
    • getEnabledCipherSuites

      public String[] getEnabledCipherSuites()
      Deprecated.
    • setEnabledCipherSuites

      public SslEngineConfigurator setEnabledCipherSuites(String[] enabledCipherSuites)
      Deprecated.
    • getEnabledProtocols

      public String[] getEnabledProtocols()
      Deprecated.
    • setEnabledProtocols

      public SslEngineConfigurator setEnabledProtocols(String[] enabledProtocols)
      Deprecated.
    • isCipherConfigured

      public boolean isCipherConfigured()
      Deprecated.
    • setCipherConfigured

      public SslEngineConfigurator setCipherConfigured(boolean isCipherConfigured)
      Deprecated.
    • isProtocolConfigured

      public boolean isProtocolConfigured()
      Deprecated.
    • setProtocolConfigured

      public SslEngineConfigurator setProtocolConfigured(boolean isProtocolConfigured)
      Deprecated.
    • getSslContext

      public SSLContext getSslContext()
      Deprecated.
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object
    • copy

      public SslEngineConfigurator copy()
      Deprecated.