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;
15 * Protocol level Session Context for incoming Call Home connections.
18 public interface CallHomeProtocolSessionContext {
21 * Returns session identifier provided by CallHomeAuthorizationProvider
23 * @return Returns application-provided session identifier
25 String getSessionName();
28 * Returns public key provided by remote SSH Server for this session.
30 * @return public key provided by remote SSH Server
32 PublicKey getRemoteServerKey();
36 * Returns remote socket address associated with this session.
38 * @return remote socket address associated with this session.
40 InetSocketAddress getRemoteAddress();
43 * Returns version string provided by remote server.
45 * @return Version string provided by remote server.
47 String getRemoteServerVersion();