Package org.eclipse.jetty.io.ssl
Class SslClientConnectionFactory
java.lang.Object
org.eclipse.jetty.io.ssl.SslClientConnectionFactory
- All Implemented Interfaces:
ClientConnectionFactory
A ClientConnectionFactory that creates client-side SslConnection
instances.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.eclipse.jetty.io.ClientConnectionFactory
ClientConnectionFactory.Decorator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
private boolean
private boolean
private final ByteBufferPool
private final ClientConnectionFactory
private final Executor
static final String
static final String
static final String
static final String
private final SslContextFactory
Fields inherited from interface org.eclipse.jetty.io.ClientConnectionFactory
CONNECTOR_CONTEXT_KEY
-
Constructor Summary
ConstructorsConstructorDescriptionSslClientConnectionFactory
(SslContextFactory sslContextFactory, ByteBufferPool byteBufferPool, Executor executor, ClientConnectionFactory connectionFactory) -
Method Summary
Modifier and TypeMethodDescriptioncustomize
(Connection connection, Map<String, Object> context) boolean
Deprecated.boolean
boolean
boolean
newConnection
(EndPoint endPoint, Map<String, Object> context) protected SslConnection
newSslConnection
(ByteBufferPool byteBufferPool, Executor executor, EndPoint endPoint, SSLEngine engine) void
setAllowMissingCloseMessage
(boolean allowMissingCloseMessage) Deprecated.usesetRequireCloseMessage(boolean)
insteadvoid
setDirectBuffersForDecryption
(boolean useDirectBuffers) void
setDirectBuffersForEncryption
(boolean useDirectBuffers) void
setRequireCloseMessage
(boolean requireCloseMessage)
-
Field Details
-
SSL_CONTEXT_FACTORY_CONTEXT_KEY
- See Also:
-
SSL_PEER_HOST_CONTEXT_KEY
- See Also:
-
SSL_PEER_PORT_CONTEXT_KEY
- See Also:
-
SSL_ENGINE_CONTEXT_KEY
- See Also:
-
sslContextFactory
-
byteBufferPool
-
executor
-
connectionFactory
-
_directBuffersForEncryption
private boolean _directBuffersForEncryption -
_directBuffersForDecryption
private boolean _directBuffersForDecryption -
_requireCloseMessage
private boolean _requireCloseMessage
-
-
Constructor Details
-
SslClientConnectionFactory
public SslClientConnectionFactory(SslContextFactory sslContextFactory, ByteBufferPool byteBufferPool, Executor executor, ClientConnectionFactory connectionFactory)
-
-
Method Details
-
setDirectBuffersForEncryption
public void setDirectBuffersForEncryption(boolean useDirectBuffers) -
setDirectBuffersForDecryption
public void setDirectBuffersForDecryption(boolean useDirectBuffers) -
isDirectBuffersForDecryption
public boolean isDirectBuffersForDecryption() -
isDirectBuffersForEncryption
public boolean isDirectBuffersForEncryption() -
isAllowMissingCloseMessage
Deprecated.useisRequireCloseMessage()
instead- Returns:
- whether is not required that peers send the TLS
close_notify
message
-
setAllowMissingCloseMessage
Deprecated.usesetRequireCloseMessage(boolean)
instead- Parameters:
allowMissingCloseMessage
- whether is not required that peers send the TLSclose_notify
message
-
isRequireCloseMessage
public boolean isRequireCloseMessage()- Returns:
- whether peers must send the TLS
close_notify
message - See Also:
-
setRequireCloseMessage
public void setRequireCloseMessage(boolean requireCloseMessage) - Parameters:
requireCloseMessage
- whether peers must send the TLSclose_notify
message- See Also:
-
newConnection
- Specified by:
newConnection
in interfaceClientConnectionFactory
- Parameters:
endPoint
- theEndPoint
to link the newly created connection tocontext
- the context data to create the connection- Returns:
- a new
Connection
- Throws:
IOException
- if the connection cannot be created
-
newSslConnection
protected SslConnection newSslConnection(ByteBufferPool byteBufferPool, Executor executor, EndPoint endPoint, SSLEngine engine) -
customize
- Specified by:
customize
in interfaceClientConnectionFactory
-
isRequireCloseMessage()
instead