public class StandardServerConnectorFactory extends Object implements ServerConnectorFactory
| Modifier and Type | Field and Description |
|---|---|
private Set<ApplicationLayerProtocol> |
applicationLayerProtocols |
private static Set<ApplicationLayerProtocol> |
DEFAULT_APPLICATION_LAYER_PROTOCOLS |
private static String[] |
INCLUDE_ALL_SECURITY_PROTOCOLS |
private String[] |
includeSecurityProtocols |
private boolean |
needClientAuth |
private int |
port |
private static boolean |
SEND_SERVER_VERSION |
private org.eclipse.jetty.server.Server |
server |
private SSLContext |
sslContext |
private boolean |
wantClientAuth |
| Constructor and Description |
|---|
StandardServerConnectorFactory(org.eclipse.jetty.server.Server server,
int port)
Standard Server Connector Factory Constructor with required properties
|
| Modifier and Type | Method and Description |
|---|---|
protected org.eclipse.jetty.server.HttpConfiguration |
getHttpConfiguration() |
protected org.eclipse.jetty.server.Server |
getServer() |
org.eclipse.jetty.server.ServerConnector |
getServerConnector()
Get Server Connector configured with HTTP/2 and ALPN as well as fallback to HTTP/1.1 with TLS
|
protected org.eclipse.jetty.util.ssl.SslContextFactory.Server |
getSslContextFactory() |
void |
setApplicationLayerProtocols(Set<ApplicationLayerProtocol> applicationLayerProtocols)
Set Application Layer Protocols applicable when TLS is enabled
|
void |
setIncludeSecurityProtocols(String[] includeSecurityProtocols)
Set Include Security Protocols limits enabled TLS Protocols to the values provided
|
void |
setNeedClientAuth(boolean needClientAuth)
Set Need Client Authentication requires clients to provide certificates for mutual TLS
|
void |
setSslContext(SSLContext sslContext)
Set SSL Context enables TLS communication
|
void |
setWantClientAuth(boolean wantClientAuth)
Set Want Client Authentication requests clients to provide certificates for mutual TLS but does not require certificates
|
private static final boolean SEND_SERVER_VERSION
private static final String[] INCLUDE_ALL_SECURITY_PROTOCOLS
private static final Set<ApplicationLayerProtocol> DEFAULT_APPLICATION_LAYER_PROTOCOLS
private final org.eclipse.jetty.server.Server server
private final int port
private Set<ApplicationLayerProtocol> applicationLayerProtocols
private SSLContext sslContext
private boolean needClientAuth
private boolean wantClientAuth
private String[] includeSecurityProtocols
public StandardServerConnectorFactory(org.eclipse.jetty.server.Server server,
int port)
server - Jetty Serverport - Secure Port Numberpublic org.eclipse.jetty.server.ServerConnector getServerConnector()
getServerConnector in interface ServerConnectorFactorypublic void setSslContext(SSLContext sslContext)
sslContext - SSL Contextpublic void setNeedClientAuth(boolean needClientAuth)
needClientAuth - Need Client Authentication statuspublic void setWantClientAuth(boolean wantClientAuth)
wantClientAuth - Want Client Authentication statuspublic void setIncludeSecurityProtocols(String[] includeSecurityProtocols)
includeSecurityProtocols - Security Protocols with null or empty enabling all standard TLS protocol versionspublic void setApplicationLayerProtocols(Set<ApplicationLayerProtocol> applicationLayerProtocols)
applicationLayerProtocols - Protocols requires at one Application Layer Protocolprotected org.eclipse.jetty.server.Server getServer()
protected org.eclipse.jetty.server.HttpConfiguration getHttpConfiguration()
protected org.eclipse.jetty.util.ssl.SslContextFactory.Server getSslContextFactory()
Copyright © 2023 Apache NiFi Project. All rights reserved.