aboutsummaryrefslogtreecommitdiffstats
path: root/container-core/src/main/java/com/yahoo/jdisc/http/ssl/SslContextFactoryProvider.java
blob: e786074e8d0d54edf947b8bc7cdda6824c7a62ea (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.jdisc.http.ssl;

import com.yahoo.jdisc.http.SslProvider;
import org.eclipse.jetty.util.ssl.SslContextFactory;

/**
 * A provider that is used to configure SSL connectors in JDisc
 *
 * @deprecated Implement {@link SslProvider} instead
 * @author bjorncs
 */
@Deprecated(forRemoval = true, since = "7")
public interface SslContextFactoryProvider extends AutoCloseable, SslProvider {

    /**
     * This method is called once for each SSL connector.
     *
     * @return returns an instance of {@link SslContextFactory} for a given JDisc http server
     */
    SslContextFactory getInstance(String containerId, int port);

    @Override default void close() {}

    @Override
    default void configureSsl(ConnectorSsl ssl, String name, int port) {
        // Signal that getInstance() should be invoked instead
        throw new UnsupportedOperationException();
    }
}