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.InetSocketAddress;
11 import java.security.PublicKey;
14 * Protocol level Session Context for incoming Call Home connections.
16 public interface CallHomeProtocolSessionContext {
19 * Returns session identifier provided by CallHomeAuthorizationProvider.
21 * @return Returns application-provided session identifier
23 String getSessionName();
26 * Returns public key provided by remote SSH Server for this session.
28 * @return public key provided by remote SSH Server
30 PublicKey getRemoteServerKey();
33 * Returns remote socket address associated with this session.
35 * @return remote socket address associated with this session.
37 InetSocketAddress getRemoteAddress();
40 * Returns version string provided by remote server.
42 * @return Version string provided by remote server.
44 String getRemoteServerVersion();