Class SslEngineConfigurator
java.lang.Object
org.glassfish.tyrus.container.jdk.client.SslEngineConfigurator
Deprecated.
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 Summary
FieldsModifier and TypeFieldDescriptionprotected booleanDeprecated.Client mode when handshaking.protected String[]Deprecated.The list of cipher suites.protected String[]Deprecated.The list of protocols.protected booleanDeprecated.Require client Authentication.protected SSLContextDeprecated.protected SslContextConfiguratorDeprecated.protected booleanDeprecated.True when requesting authentication. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDeprecated.Default constructor.SslEngineConfigurator(SSLContext sslContext) Deprecated.Create SSL Engine configuration basing on passedSSLContext.SslEngineConfigurator(SSLContext sslContext, boolean clientMode, boolean needClientAuth, boolean wantClientAuth) Deprecated.Create SSL Engine configuration basing on passedSSLContext, using passed client mode, need/want client auth parameters.SslEngineConfigurator(SslContextConfigurator sslContextConfiguration) Deprecated.Create SSL Engine configuration basing on passedSslContextConfigurator.SslEngineConfigurator(SslContextConfigurator sslContextConfiguration, boolean clientMode, boolean needClientAuth, boolean wantClientAuth) Deprecated.Create SSL Engine configuration basing on passedSslContextConfigurator.Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Configure passedSSLEngine, using current configurator settingscopy()Deprecated.Deprecated.Create and configureSSLEngine, basing on current settings.String[]Deprecated.String[]Deprecated.Deprecated.booleanDeprecated.booleanDeprecated.WillSSLEnginebe configured to work in client mode.booleanDeprecated.booleanDeprecated.booleanDeprecated.setCipherConfigured(boolean isCipherConfigured) Deprecated.setClientMode(boolean clientMode) Deprecated.SetSSLEngineto be configured to work in client mode.setEnabledCipherSuites(String[] enabledCipherSuites) Deprecated.setEnabledProtocols(String[] enabledProtocols) Deprecated.setNeedClientAuth(boolean needClientAuth) Deprecated.setProtocolConfigured(boolean isProtocolConfigured) Deprecated.setWantClientAuth(boolean wantClientAuth) Deprecated.toString()Deprecated.
-
Field Details
-
sslContextConfiguration
Deprecated. -
sslContext
Deprecated. -
enabledCipherSuites
Deprecated.The list of cipher suites. -
enabledProtocols
Deprecated.The list of protocols. -
clientMode
protected boolean clientModeDeprecated.Client mode when handshaking. -
needClientAuth
protected boolean needClientAuthDeprecated.Require client Authentication. -
wantClientAuth
protected boolean wantClientAuthDeprecated.True when requesting authentication.
-
-
Constructor Details
-
SslEngineConfigurator
Deprecated.Create SSL Engine configuration basing on passedSSLContext.- Parameters:
sslContext-SSLContext.
-
SslEngineConfigurator
public SslEngineConfigurator(SSLContext sslContext, boolean clientMode, boolean needClientAuth, boolean wantClientAuth) Deprecated.Create SSL Engine configuration basing on passedSSLContext, 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
Deprecated.Create SSL Engine configuration basing on passedSslContextConfigurator. This constructor makes possible to initialize SSLEngine and SSLContext in lazy fashion on firstcreateSSLEngine()call.- Parameters:
sslContextConfiguration-SslContextConfigurator.
-
SslEngineConfigurator
public SslEngineConfigurator(SslContextConfigurator sslContextConfiguration, boolean clientMode, boolean needClientAuth, boolean wantClientAuth) Deprecated.Create SSL Engine configuration basing on passedSslContextConfigurator. This constructor makes possible to initialize SSLEngine and SSLContext in lazy fashion on firstcreateSSLEngine()call.- Parameters:
sslContextConfiguration-SslContextConfigurator.clientMode- will be configured to work in client mode.needClientAuth- client authentication is required.wantClientAuth- client should authenticate.
-
SslEngineConfigurator
Deprecated. -
SslEngineConfigurator
protected SslEngineConfigurator()Deprecated.Default constructor.
-
-
Method Details
-
createSSLEngine
Deprecated.Create and configureSSLEngine, basing on current settings.- Returns:
SSLEngine.
-
configure
Deprecated.Configure passedSSLEngine, using current configurator settings -
isClientMode
public boolean isClientMode()Deprecated.WillSSLEnginebe configured to work in client mode.- Returns:
true, ifSSLEnginewill be configured to work inclientmode, orfalseforservermode.
-
setClientMode
Deprecated.SetSSLEngineto be configured to work in client mode.- Parameters:
clientMode-true, ifSSLEnginewill be configured to work inclientmode, orfalseforservermode.- Returns:
- updated configurator instance.
-
isNeedClientAuth
public boolean isNeedClientAuth()Deprecated. -
setNeedClientAuth
Deprecated. -
isWantClientAuth
public boolean isWantClientAuth()Deprecated. -
setWantClientAuth
Deprecated. -
getEnabledCipherSuites
Deprecated. -
setEnabledCipherSuites
Deprecated. -
getEnabledProtocols
Deprecated. -
setEnabledProtocols
Deprecated. -
isCipherConfigured
public boolean isCipherConfigured()Deprecated. -
setCipherConfigured
Deprecated. -
isProtocolConfigured
public boolean isProtocolConfigured()Deprecated. -
setProtocolConfigured
Deprecated. -
getSslContext
Deprecated. -
toString
Deprecated. -
copy
Deprecated.
-
SslEngineConfigurator.