Package org.eclipse.jetty.io.ssl
Class SslClientConnectionFactory
- java.lang.Object
-
- org.eclipse.jetty.io.ssl.SslClientConnectionFactory
-
- All Implemented Interfaces:
ClientConnectionFactory
public class SslClientConnectionFactory extends java.lang.Object implements ClientConnectionFactory
A ClientConnectionFactory that creates client-side
SslConnection
instances.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
SslClientConnectionFactory.SslEngineFactory
A factory forSSLEngine
objects.-
Nested classes/interfaces inherited from interface org.eclipse.jetty.io.ClientConnectionFactory
ClientConnectionFactory.Decorator
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
SSL_CONTEXT_FACTORY_CONTEXT_KEY
static java.lang.String
SSL_ENGINE_CONTEXT_KEY
static java.lang.String
SSL_PEER_HOST_CONTEXT_KEY
static java.lang.String
SSL_PEER_PORT_CONTEXT_KEY
-
Fields inherited from interface org.eclipse.jetty.io.ClientConnectionFactory
CONNECTOR_CONTEXT_KEY
-
-
Constructor Summary
Constructors Constructor Description SslClientConnectionFactory(SslContextFactory sslContextFactory, ByteBufferPool byteBufferPool, java.util.concurrent.Executor executor, ClientConnectionFactory connectionFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Connection
customize(Connection connection, java.util.Map<java.lang.String,java.lang.Object> context)
boolean
isAllowMissingCloseMessage()
Deprecated.useisRequireCloseMessage()
insteadboolean
isDirectBuffersForDecryption()
boolean
isDirectBuffersForEncryption()
boolean
isRequireCloseMessage()
Connection
newConnection(EndPoint endPoint, java.util.Map<java.lang.String,java.lang.Object> context)
protected SslConnection
newSslConnection(ByteBufferPool byteBufferPool, java.util.concurrent.Executor executor, EndPoint endPoint, javax.net.ssl.SSLEngine engine)
void
setAllowMissingCloseMessage(boolean allowMissingCloseMessage)
Deprecated.usesetRequireCloseMessage(boolean)
insteadvoid
setDirectBuffersForDecryption(boolean useDirectBuffers)
void
setDirectBuffersForEncryption(boolean useDirectBuffers)
void
setRequireCloseMessage(boolean requireCloseMessage)
-
-
-
Field Detail
-
SSL_CONTEXT_FACTORY_CONTEXT_KEY
public static final java.lang.String SSL_CONTEXT_FACTORY_CONTEXT_KEY
- See Also:
- Constant Field Values
-
SSL_PEER_HOST_CONTEXT_KEY
public static final java.lang.String SSL_PEER_HOST_CONTEXT_KEY
- See Also:
- Constant Field Values
-
SSL_PEER_PORT_CONTEXT_KEY
public static final java.lang.String SSL_PEER_PORT_CONTEXT_KEY
- See Also:
- Constant Field Values
-
SSL_ENGINE_CONTEXT_KEY
public static final java.lang.String SSL_ENGINE_CONTEXT_KEY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SslClientConnectionFactory
public SslClientConnectionFactory(SslContextFactory sslContextFactory, ByteBufferPool byteBufferPool, java.util.concurrent.Executor executor, ClientConnectionFactory connectionFactory)
-
-
Method Detail
-
setDirectBuffersForEncryption
public void setDirectBuffersForEncryption(boolean useDirectBuffers)
-
setDirectBuffersForDecryption
public void setDirectBuffersForDecryption(boolean useDirectBuffers)
-
isDirectBuffersForDecryption
public boolean isDirectBuffersForDecryption()
-
isDirectBuffersForEncryption
public boolean isDirectBuffersForEncryption()
-
isAllowMissingCloseMessage
@Deprecated public boolean isAllowMissingCloseMessage()
Deprecated.useisRequireCloseMessage()
instead- Returns:
- whether is not required that peers send the TLS
close_notify
message
-
setAllowMissingCloseMessage
@Deprecated public void setAllowMissingCloseMessage(boolean allowMissingCloseMessage)
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:
SslConnection.isRequireCloseMessage()
-
setRequireCloseMessage
public void setRequireCloseMessage(boolean requireCloseMessage)
- Parameters:
requireCloseMessage
- whether peers must send the TLSclose_notify
message- See Also:
SslConnection.setRequireCloseMessage(boolean)
-
newConnection
public Connection newConnection(EndPoint endPoint, java.util.Map<java.lang.String,java.lang.Object> context) throws java.io.IOException
- 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:
java.io.IOException
- if the connection cannot be created
-
newSslConnection
protected SslConnection newSslConnection(ByteBufferPool byteBufferPool, java.util.concurrent.Executor executor, EndPoint endPoint, javax.net.ssl.SSLEngine engine)
-
customize
public Connection customize(Connection connection, java.util.Map<java.lang.String,java.lang.Object> context)
- Specified by:
customize
in interfaceClientConnectionFactory
-
-