@Contract(threading=STATELESS) public class DefaultClientTlsStrategy extends Object
| 构造器和说明 |
|---|
DefaultClientTlsStrategy(SSLContext sslContext) |
DefaultClientTlsStrategy(SSLContext sslContext,
HostnameVerifier hostnameVerifier) |
DefaultClientTlsStrategy(SSLContext sslContext,
String[] supportedProtocols,
String[] supportedCipherSuites,
SSLBufferMode sslBufferManagement,
HostnameVerifier hostnameVerifier) |
DefaultClientTlsStrategy(SSLContext sslContext,
String[] supportedProtocols,
String[] supportedCipherSuites,
SSLBufferMode sslBufferManagement,
HostnameVerifier hostnameVerifier,
Factory<SSLEngine,TlsDetails> tlsDetailsFactory)
|
| 限定符和类型 | 方法和说明 |
|---|---|
static TlsStrategy |
getDefault() |
static TlsStrategy |
getSystemDefault() |
protected void |
initializeEngine(SSLEngine sslEngine) |
boolean |
upgrade(TransportSecurityLayer tlsSession,
HttpHost host,
SocketAddress localAddress,
SocketAddress remoteAddress,
Object attachment,
Timeout handshakeTimeout)
|
void |
upgrade(TransportSecurityLayer tlsSession,
NamedEndpoint endpoint,
Object attachment,
Timeout handshakeTimeout,
FutureCallback<TransportSecurityLayer> callback)
Secures current session layer with TLS.
|
protected void |
verifySession(String hostname,
SSLSession sslsession) |
@Deprecated public DefaultClientTlsStrategy(SSLContext sslContext, String[] supportedProtocols, String[] supportedCipherSuites, SSLBufferMode sslBufferManagement, HostnameVerifier hostnameVerifier, Factory<SSLEngine,TlsDetails> tlsDetailsFactory)
public DefaultClientTlsStrategy(SSLContext sslContext, String[] supportedProtocols, String[] supportedCipherSuites, SSLBufferMode sslBufferManagement, HostnameVerifier hostnameVerifier)
public DefaultClientTlsStrategy(SSLContext sslContext, HostnameVerifier hostnameVerifier)
public DefaultClientTlsStrategy(SSLContext sslContext)
public static TlsStrategy getDefault()
public static TlsStrategy getSystemDefault()
@Deprecated public boolean upgrade(TransportSecurityLayer tlsSession, HttpHost host, SocketAddress localAddress, SocketAddress remoteAddress, Object attachment, Timeout handshakeTimeout)
TlsStrategyupgrade 在接口中 TlsStrategytlsSession - the session layerhost - the name of the opposite endpoint when given or null otherwise.localAddress - the address of the local endpoint.remoteAddress - the address of the remote endpoint.attachment - arbitrary object passes to the TLS session initialization code.handshakeTimeout - the timeout to use while performing the TLS handshake; may be null.true if the session has been upgraded, false otherwise.public void upgrade(TransportSecurityLayer tlsSession, NamedEndpoint endpoint, Object attachment, Timeout handshakeTimeout, FutureCallback<TransportSecurityLayer> callback)
TlsStrategyupgrade 在接口中 TlsStrategytlsSession - the session layerendpoint - the name of the opposite endpoint when applicable or null otherwise.attachment - arbitrary object passes to the TLS session initialization code.handshakeTimeout - the timeout to use while performing the TLS handshake; may be null.callback - Operation result callback.protected void initializeEngine(SSLEngine sslEngine)
protected void verifySession(String hostname, SSLSession sslsession) throws SSLException
SSLExceptionCopyright © 2023. All rights reserved.