2 * Copyright (c) 2018 ZTE Corporation. 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.client;
10 import io.netty.handler.ssl.SslHandler;
14 * Basic interface for {@link SslHandler} builder. Used to establish TSL connection.
16 * @deprecated due to design change. SslHandler will be created dynamically based on TLS layer configuration
17 * {@link org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.tls.client.rev231228.TlsClientGrouping}
18 * by {@link NetconfClientFactory}.
21 public interface SslHandlerFactory {
23 * This factory is used by the TLS client to create SslHandler that will be added into the channel pipeline when
24 * the channel is active.
26 default SslHandler createSslHandler() {
27 return createSslHandler(Set.of());
30 SslHandler createSslHandler(Set<String> allowedKeys);