BUG-1422 Introduce Call-Home functionality for the NETCONF Topology.
[netconf.git] / netconf / callhome-protocol / src / main / java / org / opendaylight / netconf / callhome / protocol / CallHomeProtocolSessionContext.java
1 /*
2  * Copyright (c) 2016 Brocade Communication Systems and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.netconf.callhome.protocol;
9
10 import java.net.InetSocketAddress;
11 import java.security.PublicKey;
12
13 /**
14  *
15  * Protocol level Session Context for incoming Call Home connections.
16  *
17  */
18 public interface CallHomeProtocolSessionContext {
19
20     /**
21      * Returns session identifier provided by  CallHomeAuthorizationProvider
22      *
23      * @return Returns application-provided session identifier
24      */
25     String getSessionName();
26
27     /**
28      * Returns public key provided by remote SSH Server for this session.
29      *
30      * @return public key provided by remote SSH Server
31      */
32     PublicKey getRemoteServerKey();
33
34     /**
35      *
36      * Returns remote socket address associated with this session.
37      *
38      * @return remote socket address associated with this session.
39      */
40     InetSocketAddress getRemoteAddress();
41
42     /**
43      * Returns version string provided by remote server.
44      *
45      * @return Version string provided by remote server.
46      */
47     String getRemoteServerVersion();
48
49 }