You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mina.apache.org by lg...@apache.org on 2019/12/05 17:44:34 UTC

[mina-sshd] 04/09: Moved isServerSession() indicator from Session to SessionContext

This is an automated email from the ASF dual-hosted git repository.

lgoldstein pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mina-sshd.git

commit 9cf3feab69077da29bca8ca14899033e0016c274
Author: Lyor Goldstein <lg...@apache.org>
AuthorDate: Thu Nov 28 20:25:57 2019 +0200

    Moved isServerSession() indicator from Session to SessionContext
---
 .../main/java/org/apache/sshd/common/session/SessionContext.java  | 8 ++++++++
 .../src/main/java/org/apache/sshd/common/session/Session.java     | 8 --------
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/sshd-common/src/main/java/org/apache/sshd/common/session/SessionContext.java b/sshd-common/src/main/java/org/apache/sshd/common/session/SessionContext.java
index 51c9b00..e73e4b5 100644
--- a/sshd-common/src/main/java/org/apache/sshd/common/session/SessionContext.java
+++ b/sshd-common/src/main/java/org/apache/sshd/common/session/SessionContext.java
@@ -72,6 +72,14 @@ public interface SessionContext
     byte[] getSessionId();
 
     /**
+     * Quick indication if this is a server or client session (instead of
+     * having to ask {@code instanceof}).
+     *
+     * @return {@code true} if this is a server session
+     */
+    boolean isServerSession();
+
+    /**
      * Retrieve the client version for this session.
      *
      * @return the client version - may be {@code null}/empty if versions not yet exchanged
diff --git a/sshd-core/src/main/java/org/apache/sshd/common/session/Session.java b/sshd-core/src/main/java/org/apache/sshd/common/session/Session.java
index 8b7265a..dc6c00c 100644
--- a/sshd-core/src/main/java/org/apache/sshd/common/session/Session.java
+++ b/sshd-core/src/main/java/org/apache/sshd/common/session/Session.java
@@ -66,14 +66,6 @@ public interface Session
                 PacketWriter {
 
     /**
-     * Quick indication if this is a server or client session (instead of
-     * having to ask {@code instanceof}).
-     *
-     * @return {@code true} if this is a server session
-     */
-    boolean isServerSession();
-
-    /**
      * Retrieves current cipher information - <B>Note:</B> may change if
      * key re-exchange executed
      *