SslEngineConfigurator.public class SslEngineConfigurator extends Object
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);
| Constructor and Description |
|---|
SslEngineConfigurator(SSLContext sslContext)
Deprecated.
Create SSL Engine configuration basing on passed
SSLContext. |
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. |
SslEngineConfigurator(SslContextConfigurator sslContextConfiguration)
Deprecated.
Create SSL Engine configuration basing on passed
SslContextConfigurator. |
SslEngineConfigurator(SslContextConfigurator sslContextConfiguration,
boolean clientMode,
boolean needClientAuth,
boolean wantClientAuth)
Deprecated.
Create SSL Engine configuration basing on passed
SslContextConfigurator. |
SslEngineConfigurator(SslEngineConfigurator pattern)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
SSLEngine |
configure(SSLEngine sslEngine)
Deprecated.
Configure passed
SSLEngine, using current configurator settings |
SslEngineConfigurator |
copy()
Deprecated.
|
SSLEngine |
createSSLEngine()
Deprecated.
Create and configure
SSLEngine, basing on current settings. |
String[] |
getEnabledCipherSuites()
Deprecated.
|
String[] |
getEnabledProtocols()
Deprecated.
|
SSLContext |
getSslContext()
Deprecated.
|
boolean |
isCipherConfigured()
Deprecated.
|
boolean |
isClientMode()
Deprecated.
Will
SSLEngine be configured to work in client mode. |
boolean |
isNeedClientAuth()
Deprecated.
|
boolean |
isProtocolConfigured()
Deprecated.
|
boolean |
isWantClientAuth()
Deprecated.
|
SslEngineConfigurator |
setCipherConfigured(boolean isCipherConfigured)
Deprecated.
|
SslEngineConfigurator |
setClientMode(boolean clientMode)
Deprecated.
Set
SSLEngine to be configured to work in client mode. |
SslEngineConfigurator |
setEnabledCipherSuites(String[] enabledCipherSuites)
Deprecated.
|
SslEngineConfigurator |
setEnabledProtocols(String[] enabledProtocols)
Deprecated.
|
SslEngineConfigurator |
setNeedClientAuth(boolean needClientAuth)
Deprecated.
|
SslEngineConfigurator |
setProtocolConfigured(boolean isProtocolConfigured)
Deprecated.
|
SslEngineConfigurator |
setWantClientAuth(boolean wantClientAuth)
Deprecated.
|
String |
toString()
Deprecated.
|
public SslEngineConfigurator(SSLContext sslContext)
SSLContext.sslContext - SSLContext.public SslEngineConfigurator(SSLContext sslContext, boolean clientMode, boolean needClientAuth, boolean wantClientAuth)
SSLContext,
using passed client mode, need/want client auth parameters.sslContext - SSLContext.clientMode - will be configured to work in client mode.needClientAuth - client authentication is required.wantClientAuth - client should authenticate.public SslEngineConfigurator(SslContextConfigurator sslContextConfiguration)
SslContextConfigurator.
This constructor makes possible to initialize SSLEngine and SSLContext in lazy
fashion on first createSSLEngine() call.sslContextConfiguration - SslContextConfigurator.public SslEngineConfigurator(SslContextConfigurator sslContextConfiguration, boolean clientMode, boolean needClientAuth, boolean wantClientAuth)
SslContextConfigurator.
This constructor makes possible to initialize SSLEngine and SSLContext in lazy
fashion on first createSSLEngine() call.sslContextConfiguration - SslContextConfigurator.clientMode - will be configured to work in client mode.needClientAuth - client authentication is required.wantClientAuth - client should authenticate.public SslEngineConfigurator(SslEngineConfigurator pattern)
public SSLEngine createSSLEngine()
SSLEngine, basing on current settings.SSLEngine.public SSLEngine configure(SSLEngine sslEngine)
SSLEngine, using current configurator settingspublic boolean isClientMode()
SSLEngine be configured to work in client mode.SSLEngine will be configured to work
in client mode, or false for server mode.public SslEngineConfigurator setClientMode(boolean clientMode)
SSLEngine to be configured to work in client mode.clientMode - true, if SSLEngine will be configured
to work in client mode, or false for server
mode.public boolean isNeedClientAuth()
public SslEngineConfigurator setNeedClientAuth(boolean needClientAuth)
public boolean isWantClientAuth()
public SslEngineConfigurator setWantClientAuth(boolean wantClientAuth)
public String[] getEnabledCipherSuites()
public SslEngineConfigurator setEnabledCipherSuites(String[] enabledCipherSuites)
public String[] getEnabledProtocols()
public SslEngineConfigurator setEnabledProtocols(String[] enabledProtocols)
public boolean isCipherConfigured()
public SslEngineConfigurator setCipherConfigured(boolean isCipherConfigured)
public boolean isProtocolConfigured()
public SslEngineConfigurator setProtocolConfigured(boolean isProtocolConfigured)
public SSLContext getSslContext()
public SslEngineConfigurator copy()
Copyright © 2014–2017 XMPP.rocks. All rights reserved.