SSLEngine.
| Modifier and Type | Field and Description |
|---|---|
| protected boolean | clientMode
Client mode when handshaking. |
| private static final Logger | |
| protected volatile SSLContext | |
| protected volatile SSLContextConfigurator | |
| private SSLParameters | sslParameters
Parameters to configure |
| private final Object |
| Access | Constructor and Description |
|---|---|
| public | SSLEngineConfigurator(SSLContext sslContext)
Create SSL Engine configuration basing on passed |
| public | SSLEngineConfigurator(final SSLContext sslContext, final boolean clientMode, final boolean needClientAuth, final boolean wantClientAuth)
Create SSL Engine configuration basing on passed |
| public | SSLEngineConfigurator(SSLContextConfigurator sslContextConfiguration)
Create SSL Engine configuration basing on passed |
| public | SSLEngineConfigurator(SSLContextConfigurator sslContextConfiguration, boolean clientMode, boolean needClientAuth, boolean wantClientAuth)
Create SSL Engine configuration basing on passed |
| public | |
| 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 supportedDetermines 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 | |
| private SSLParameters | |
| public SSLEngine | Returns: SSLEngine.Create and configure |
| public SSLEngine | Returns: SSLEngine.the non-authoritative name of the host peerHost, final int the non-authoritative port peerPort)Implements org. Create and configure |
| public String[] | |
| public String[] | |
| public SSLContext | |
| public boolean | Returns: true, ifSSLEngine will be configured to work in client mode, or false for
server mode.Will |
| public boolean | |
| public boolean | |
| public SSLEngineConfigurator | Returns: this SSLEngineConfiguratortrue, if clientMode)SSLEngine will be configured to work in client mode, or
false for server mode.Set |
| public SSLEngineConfigurator | Returns: this SSLEngineConfiguratorlist of enabled cipher suites enabledCipherSuites)Sets a list of enabled cipher suites. |
| public SSLEngineConfigurator | Returns: this SSLEngineConfiguratorlist of enabled protocols enabledProtocols)Sets a list of enabled protocols. |
| public SSLEngineConfigurator | |
| public SSLEngineConfigurator | Returns: this SSLEngineConfiguratorApply |
| public SSLEngineConfigurator | |
| public String |
| clientMode | back to summary |
|---|---|
| protected boolean clientMode Client mode when handshaking. | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| sslContext | back to summary |
|---|---|
| protected volatile SSLContext sslContext | |
| sslContextConfiguration | back to summary |
|---|---|
| protected volatile SSLContextConfigurator sslContextConfiguration | |
| sslParameters | back to summary |
|---|---|
| private SSLParameters sslParameters Parameters to configure | |
| sync | back to summary |
|---|---|
| private final Object sync | |
| 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) Create SSL Engine configuration basing on passed
| |
| SSLEngineConfigurator | back to summary |
|---|---|
| public SSLEngineConfigurator(SSLContextConfigurator sslContextConfiguration, boolean clientMode, boolean needClientAuth, boolean wantClientAuth) Create SSL Engine configuration basing on passed
| |
| SSLEngineConfigurator | back to summary |
|---|---|
| public SSLEngineConfigurator(SSLEngineConfigurator pattern) | |
| SSLEngineConfigurator | back to summary |
|---|---|
| protected SSLEngineConfigurator() | |
| 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() | |
| copy | back to summary |
|---|---|
| private SSLParameters copy(SSLParameters src) | |
| createSSLEngine | back to summary |
|---|---|
| public SSLEngine createSSLEngine() Create and configure | |
| createSSLEngine | back to summary |
|---|---|
| public SSLEngine createSSLEngine(final String peerHost, final int peerPort) Implements org. Create and configure Applications using this factory method are providing hints for an internal session reuse strategy. Some cipher suites (such as Kerberos) require remote hostname information, in which case peerHost needs to be specified. | |
| getEnabledCipherSuites | back to summary |
|---|---|
public String[] getEnabledCipherSuites()
| |
| getEnabledProtocols | back to summary |
|---|---|
public String[] getEnabledProtocols()
| |
| getSslContext | back to summary |
|---|---|
| public SSLContext getSslContext() | |
| isClientMode | back to summary |
|---|---|
| public boolean isClientMode() Will
| |
| isNeedClientAuth | back to summary |
|---|---|
| public boolean isNeedClientAuth() | |
| isWantClientAuth | back to summary |
|---|---|
| public boolean isWantClientAuth() | |
| setClientMode | back to summary |
|---|---|
| public SSLEngineConfigurator setClientMode(boolean clientMode) Set
| |
| setEnabledCipherSuites | back to summary |
|---|---|
| public SSLEngineConfigurator setEnabledCipherSuites(final String[] enabledCipherSuites) Sets a list of enabled cipher suites. Note further modifications made on the passed array won't be propagated to SSLEngineConfigurator.
| |
| setEnabledProtocols | back to summary |
|---|---|
| public SSLEngineConfigurator setEnabledProtocols(final String[] enabledProtocols) Sets a list of enabled protocols. Note further modifications made on the passed array won't be propagated to SSLEngineConfigurator.
| |
| setNeedClientAuth | back to summary |
|---|---|
| public SSLEngineConfigurator setNeedClientAuth(boolean needClientAuth) | |
| setSSLParameters | back to summary |
|---|---|
| public SSLEngineConfigurator setSSLParameters(SSLParameters sslParameters) Apply
| |
| setWantClientAuth | back to summary |
|---|---|
| public SSLEngineConfigurator setWantClientAuth(boolean wantClientAuth) | |
| 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-
| |