2 * Copyright (c) 2016 Brocade Communication Systems 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.callhome.protocol;
10 import java.net.SocketAddress;
11 import java.security.PublicKey;
12 import org.opendaylight.yang.gen.v1.urn.opendaylight.netconf.device.rev231025.connection.parameters.Protocol.Name;
15 * Protocol level Session Context for incoming Call Home connections.
17 public interface CallHomeProtocolSessionContext {
20 * Returns session identifier provided by CallHomeAuthorizationProvider.
22 * @return Returns application-provided session identifier
24 String getSessionId();
27 * Returns public key provided by remote SSH Server for this session.
29 * @return public key provided by remote SSH Server
31 PublicKey getRemoteServerKey();
34 * Returns remote socket address associated with this session.
36 * @return remote socket address associated with this session.
38 SocketAddress getRemoteAddress();
41 * Terminate this session.
46 * Returns transport type for this session.
48 * @return {@link Name} for this session.
50 Name getTransportType();