Class 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 for ConnectorFactory with hosted specific configuration.
    Author:
    bjorncs
    See Also:
    Serialized Form
    • 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 interface com.yahoo.jdisc.http.ConnectorConfig.Producer
        Overrides:
        getConfig in class ConnectorFactory