2 * Copyright (c) 2013 Robert Varga. 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.bgpcep.tcpmd5.netty;
10 import io.netty.channel.socket.nio.NioServerSocketChannel;
12 import org.opendaylight.bgpcep.tcpmd5.KeyAccessFactory;
13 import org.opendaylight.bgpcep.tcpmd5.nio.MD5ServerSocketChannel;
16 * {@link NioServerSocketChannel} enabled with support for TCP MD5 Signature
19 public class MD5NioServerSocketChannel extends NioServerSocketChannel {
20 private final MD5ServerSocketChannelConfig config;
21 private final MD5ServerSocketChannel channel;
23 public MD5NioServerSocketChannel() {
25 this.channel = new MD5ServerSocketChannel(super.javaChannel());
26 this.config = new ProxyMD5ServerSocketChannelConfig(super.config(), channel);
29 public MD5NioServerSocketChannel(final KeyAccessFactory keyAccessFactory) {
31 this.channel = new MD5ServerSocketChannel(super.javaChannel(), keyAccessFactory);
32 this.config = new ProxyMD5ServerSocketChannelConfig(super.config(), channel);
36 public MD5ServerSocketChannelConfig config() {
41 protected MD5ServerSocketChannel javaChannel() {