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;
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 getSessionId();
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 SocketAddress getRemoteAddress();
40 * Terminate this session.
45 * Returns transport type for this session.
47 * @return {@link TransportType} for this session.
49 TransportType getTransportType();