2 * Copyright (c) 2023 PANTHEON.tech s.r.o. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.netconf.transport.tls;
10 import com.google.common.annotations.Beta;
11 import io.netty.channel.Channel;
12 import io.netty.handler.ssl.SslHandler;
15 * Extension interface for external service integration with TLS transport. Used to build {@link TLSClient} and
16 * {@link TLSServer} instances.
20 public interface SslHandlerFactory {
22 * Builds {@link SslHandler} instance for given {@link Channel}.
24 * @param channel channel
25 * @return A SslHandler
27 SslHandler createSslHandler(Channel channel);