Deprecated
Please use org..
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);
| Modifier and Type | Field and Description |
|---|---|
| protected boolean | clientMode
Client mode when handshaking. |
| protected String[] | enabledCipherSuites
The list of cipher suites. |
| protected String[] | enabledProtocols
The list of protocols. |
| private boolean | isCipherConfigured
Has the enabled Cipher configured. |
| private boolean | isProtocolConfigured
Has the enabled protocol configured. |
| protected boolean | needClientAuth
Require client Authentication. |
| protected volatile SSLContext | |
| protected volatile SslContextConfigurator | sslContextConfiguration
References Deprecated
SslContextConfigurator is deprecated or references (maybe indirectly) at least one deprecated element.
|
| private final Object | |
| protected boolean | wantClientAuth
True when requesting authentication. |
| Access | Constructor and Description |
|---|---|
| public | SslEngineConfigurator(SSLContext sslContext)
Create SSL Engine configuration basing on passed |
| public | SslEngineConfigurator(final SSLContext sslContext, final boolean
will be configured to work in client mode. clientMode, final boolean client authentication is required. needClientAuth, final boolean client should authenticate. wantClientAuth)Create SSL Engine configuration basing on passed |
| public | SslEngineConfigurator(SslContextConfigurator sslContextConfiguration)
References Deprecated
SslContextConfigurator is deprecated or references (maybe indirectly) at least one deprecated element.
Create SSL Engine configuration basing on passed |
| public | SslEngineConfigurator(SslContextConfigurator sslContextConfiguration, boolean
will be configured to work in client mode. clientMode, boolean client authentication is required. needClientAuth, boolean client should authenticate. wantClientAuth)
References Deprecated
SslContextConfigurator is deprecated or references (maybe indirectly) at least one deprecated element.
Create SSL Engine configuration basing on passed |
| public | SslEngineConfigurator(SslEngineConfigurator pattern)
References Deprecated
SslEngineConfigurator is deprecated or references (maybe indirectly) at least one deprecated element.
|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public SSLEngine | |
| private static String[] | Returns: Array of SSL cipher suites to be enabled, or null if none of the requested ciphers are supported.Determines the SSL cipher suites to be enabled. |
| private static String[] | Returns: String[] an array of supported protocols.Return the list of allowed protocol. |
| public SslEngineConfigurator | copy()
References Deprecated
SslEngineConfigurator is deprecated or references (maybe indirectly) at least one deprecated element.
|
| public SSLEngine | |
| public String[] | |
| public String[] | |
| public SSLContext | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public SslEngineConfigurator | setCipherConfigured(boolean isCipherConfigured)
References Deprecated
SslEngineConfigurator is deprecated or references (maybe indirectly) at least one deprecated element.
|
| public SslEngineConfigurator | Returns: updated configurator instance.
References Deprecated
SslEngineConfigurator is deprecated or references (maybe indirectly) at least one deprecated element.
Set |
| public SslEngineConfigurator | setEnabledCipherSuites(String[] enabledCipherSuites)
References Deprecated
SslEngineConfigurator is deprecated or references (maybe indirectly) at least one deprecated element.
|
| public SslEngineConfigurator | setEnabledProtocols(String[] enabledProtocols)
References Deprecated
SslEngineConfigurator is deprecated or references (maybe indirectly) at least one deprecated element.
|
| public SslEngineConfigurator | setNeedClientAuth(boolean needClientAuth)
References Deprecated
SslEngineConfigurator is deprecated or references (maybe indirectly) at least one deprecated element.
|
| public SslEngineConfigurator | setProtocolConfigured(boolean isProtocolConfigured)
References Deprecated
SslEngineConfigurator is deprecated or references (maybe indirectly) at least one deprecated element.
|
| public SslEngineConfigurator | setWantClientAuth(boolean wantClientAuth)
References Deprecated
SslEngineConfigurator is deprecated or references (maybe indirectly) at least one deprecated element.
|
| public String |
| clientMode | back to summary |
|---|---|
| protected boolean clientMode Client mode when handshaking. | |
| enabledCipherSuites | back to summary |
|---|---|
| protected String[] enabledCipherSuites The list of cipher suites. | |
| enabledProtocols | back to summary |
|---|---|
| protected String[] enabledProtocols The list of protocols. | |
| isCipherConfigured | back to summary |
|---|---|
| private boolean isCipherConfigured Has the enabled Cipher configured. | |
| isProtocolConfigured | back to summary |
|---|---|
| private boolean isProtocolConfigured Has the enabled protocol configured. | |
| needClientAuth | back to summary |
|---|---|
| protected boolean needClientAuth Require client Authentication. | |
| sslContext | back to summary |
|---|---|
| protected volatile SSLContext sslContext | |
| sslContextConfiguration | back to summary |
|---|---|
| protected volatile SslContextConfigurator sslContextConfiguration
References Deprecated
See corresponding docs for further information. | |
| sync | back to summary |
|---|---|
| private final Object sync | |
| wantClientAuth | back to summary |
|---|---|
| protected boolean wantClientAuth True when requesting authentication. | |
| SslEngineConfigurator | back to summary |
|---|---|
| public SslEngineConfigurator(SSLContext sslContext) Create SSL Engine configuration basing on passed
| |
| SslEngineConfigurator | back to summary |
|---|---|
| public SslEngineConfigurator(final SSLContext sslContext, final boolean clientMode, final boolean needClientAuth, final boolean wantClientAuth) Create SSL Engine configuration basing on passed
| |
| SslEngineConfigurator | back to summary |
|---|---|
| public SslEngineConfigurator(SslContextConfigurator sslContextConfiguration)
References Deprecated
See corresponding docs for further information. Create SSL Engine configuration basing on passed
| |
| SslEngineConfigurator | back to summary |
|---|---|
| public SslEngineConfigurator(SslContextConfigurator sslContextConfiguration, boolean clientMode, boolean needClientAuth, boolean wantClientAuth)
References Deprecated
See corresponding docs for further information. Create SSL Engine configuration basing on passed
| |
| SslEngineConfigurator | back to summary |
|---|---|
| public SslEngineConfigurator(SslEngineConfigurator pattern)
References Deprecated
See corresponding docs for further information. | |
| SslEngineConfigurator | back to summary |
|---|---|
| protected SslEngineConfigurator() Default constructor. | |
| configure | back to summary |
|---|---|
| public SSLEngine configure(final SSLEngine sslEngine) Configure passed | |
| configureEnabledCiphers | back to summary |
|---|---|
| private static String[] configureEnabledCiphers(SSLEngine sslEngine, String[] requestedCiphers) Determines the SSL cipher suites to be enabled.
| |
| configureEnabledProtocols | back to summary |
|---|---|
| private static String[] configureEnabledProtocols(SSLEngine sslEngine, String[] requestedProtocols) Return the list of allowed protocol.
| |
| copy | back to summary |
|---|---|
| public SslEngineConfigurator copy()
References Deprecated
See corresponding docs for further information. | |
| createSSLEngine | back to summary |
|---|---|
| public SSLEngine createSSLEngine() Create and configure | |
| getEnabledCipherSuites | back to summary |
|---|---|
| public String[] getEnabledCipherSuites() | |
| getEnabledProtocols | back to summary |
|---|---|
| public String[] getEnabledProtocols() | |
| getSslContext | back to summary |
|---|---|
| public SSLContext getSslContext() | |
| isCipherConfigured | back to summary |
|---|---|
| public boolean isCipherConfigured() | |
| isClientMode | back to summary |
|---|---|
| public boolean isClientMode() Will
| |
| isNeedClientAuth | back to summary |
|---|---|
| public boolean isNeedClientAuth() | |
| isProtocolConfigured | back to summary |
|---|---|
| public boolean isProtocolConfigured() | |
| isWantClientAuth | back to summary |
|---|---|
| public boolean isWantClientAuth() | |
| setCipherConfigured | back to summary |
|---|---|
| public SslEngineConfigurator setCipherConfigured(boolean isCipherConfigured)
References Deprecated
See corresponding docs for further information. | |
| setClientMode | back to summary |
|---|---|
| public SslEngineConfigurator setClientMode(boolean clientMode)
References Deprecated
See corresponding docs for further information. Set
| |
| setEnabledCipherSuites | back to summary |
|---|---|
| public SslEngineConfigurator setEnabledCipherSuites(String[] enabledCipherSuites)
References Deprecated
See corresponding docs for further information. | |
| setEnabledProtocols | back to summary |
|---|---|
| public SslEngineConfigurator setEnabledProtocols(String[] enabledProtocols)
References Deprecated
See corresponding docs for further information. | |
| setNeedClientAuth | back to summary |
|---|---|
| public SslEngineConfigurator setNeedClientAuth(boolean needClientAuth)
References Deprecated
See corresponding docs for further information. | |
| setProtocolConfigured | back to summary |
|---|---|
| public SslEngineConfigurator setProtocolConfigured(boolean isProtocolConfigured)
References Deprecated
See corresponding docs for further information. | |
| setWantClientAuth | back to summary |
|---|---|
| public SslEngineConfigurator setWantClientAuth(boolean wantClientAuth)
References Deprecated
See corresponding docs for further information. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |