Class HostedSslConnectorFactory
- java.lang.Object
-
- com.yahoo.config.model.producer.AbstractConfigProducer<CHILD>
-
- com.yahoo.vespa.model.container.component.Component<AbstractConfigProducer<?>,com.yahoo.osgi.provider.model.ComponentModel>
-
- com.yahoo.vespa.model.container.component.SimpleComponent
-
- com.yahoo.vespa.model.container.http.ConnectorFactory
-
- com.yahoo.vespa.model.container.http.ssl.HostedSslConnectorFactory
-
- All Implemented Interfaces:
com.yahoo.config.ConfigInstance.Producer
,com.yahoo.jdisc.http.ConnectorConfig.Producer
,ConfigProducer
,java.io.Serializable
,java.lang.Comparable<Component<?,?>>
public class HostedSslConnectorFactory extends ConnectorFactory
Component specification forConnectorFactory
with hosted specific configuration.- Author:
- bjorncs
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.yahoo.config.model.producer.AbstractConfigProducer
log
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
getConfig(com.yahoo.jdisc.http.ConnectorConfig.Builder connectorBuilder)
static HostedSslConnectorFactory
withDefaultCertificateAndTruststore(java.lang.String serverName, boolean enableProxyProtocol)
Create connector factory that uses the default certificate and truststore provided by Vespa (through Vespa-global TLS configuration).static HostedSslConnectorFactory
withProvidedCertificate(java.lang.String serverName, com.yahoo.config.model.api.EndpointCertificateSecrets endpointCertificateSecrets, boolean enableProxyProtocol)
Create connector factory that uses a certificate provided by the config-model / configserver and default hosted Vespa truststore.static HostedSslConnectorFactory
withProvidedCertificateAndTruststore(java.lang.String serverName, com.yahoo.config.model.api.EndpointCertificateSecrets endpointCertificateSecrets, java.lang.String tlsCaCertificates, boolean enableProxyProtocol)
Create connector factory that uses a certificate provided by the config-model / configserver and a truststore configured by the application.-
Methods inherited from class com.yahoo.vespa.model.container.http.ConnectorFactory
getListenPort, getName
-
Methods inherited from class com.yahoo.vespa.model.container.component.Component
addComponent, compareTo, fromClassAndBundle, getClassId, getComponentId, getGlobalComponentId, getInjectedComponentIds, inject, injectForName
-
Methods inherited from class com.yahoo.config.model.producer.AbstractConfigProducer
addChild, addConfigId, addDescendantService, addUserConfig, cascadeConfig, dump, getChildren, getChildrenByTypeRecursive, getConfigClassLoader, getConfigId, getDescendantServices, getMonitoringService, getParent, getRoot, getSubId, getUserConfigs, hostSystem, mergeUserConfigs, removeChild, setParent, setUserConfigs, stateIsHosted, validate
-
-
-
-
Method Detail
-
withProvidedCertificate
public static HostedSslConnectorFactory withProvidedCertificate(java.lang.String serverName, com.yahoo.config.model.api.EndpointCertificateSecrets endpointCertificateSecrets, boolean enableProxyProtocol)
Create connector factory that uses a certificate provided by the config-model / configserver and default hosted Vespa truststore.
-
withProvidedCertificateAndTruststore
public static HostedSslConnectorFactory withProvidedCertificateAndTruststore(java.lang.String serverName, com.yahoo.config.model.api.EndpointCertificateSecrets endpointCertificateSecrets, java.lang.String tlsCaCertificates, boolean enableProxyProtocol)
Create connector factory that uses a certificate provided by the config-model / configserver and a truststore configured by the application.
-
withDefaultCertificateAndTruststore
public static HostedSslConnectorFactory withDefaultCertificateAndTruststore(java.lang.String serverName, boolean enableProxyProtocol)
Create connector factory that uses the default certificate and truststore provided by Vespa (through Vespa-global TLS configuration).
-
getConfig
public void getConfig(com.yahoo.jdisc.http.ConnectorConfig.Builder connectorBuilder)
- Specified by:
getConfig
in interfacecom.yahoo.jdisc.http.ConnectorConfig.Producer
- Overrides:
getConfig
in classConnectorFactory
-
-