aboutsummaryrefslogtreecommitdiffstats
path: root/jdisc_http_service/src/main/java/com/yahoo/jdisc/http/ssl/ThrowingSslContextFactoryProvider.java
blob: b28ef54e82243d119162156029c3cd4a7b70cf95 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.jdisc.http.ssl;

import org.eclipse.jetty.util.ssl.SslContextFactory;

/**
 * A dummy implementation of {@link SslContextFactoryProvider} to be injected into non-ssl connectors
 *
 * @author bjorncs
 */
public class ThrowingSslContextFactoryProvider implements SslContextFactoryProvider {
    @Override
    public SslContextFactory getInstance(String containerId, int port) {
        throw new UnsupportedOperationException();
    }
}