Class JGitServerKeyVerifier.SessionConfig
java.lang.Object
org.eclipse.jgit.internal.transport.sshd.JGitServerKeyVerifier.SessionConfig
- All Implemented Interfaces:
ServerKeyDatabase.Configuration
- Enclosing class:
JGitServerKeyVerifier
private static class JGitServerKeyVerifier.SessionConfig
extends Object
implements ServerKeyDatabase.Configuration
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.jgit.transport.sshd.ServerKeyDatabase.Configuration
ServerKeyDatabase.Configuration.StrictHostKeyChecking
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the list of file names from the "GlobalKnownHostsFile" ssh config.boolean
Obtains the value of the "HashKnownHosts" ssh config.Obtains the value of the "StrictHostKeyChecking" ssh config.Retrieves the list of file names from the "UserKnownHostsFile" ssh config.Obtains the user name used in the connection attempt.
-
Field Details
-
session
-
-
Constructor Details
-
SessionConfig
-
-
Method Details
-
get
-
getUserKnownHostsFiles
Description copied from interface:ServerKeyDatabase.Configuration
Retrieves the list of file names from the "UserKnownHostsFile" ssh config.- Specified by:
getUserKnownHostsFiles
in interfaceServerKeyDatabase.Configuration
- Returns:
- the list as configured, with ~ already replaced
-
getGlobalKnownHostsFiles
Description copied from interface:ServerKeyDatabase.Configuration
Retrieves the list of file names from the "GlobalKnownHostsFile" ssh config.- Specified by:
getGlobalKnownHostsFiles
in interfaceServerKeyDatabase.Configuration
- Returns:
- the list as configured, with ~ already replaced
-
getStrictHostKeyChecking
Description copied from interface:ServerKeyDatabase.Configuration
Obtains the value of the "StrictHostKeyChecking" ssh config.- Specified by:
getStrictHostKeyChecking
in interfaceServerKeyDatabase.Configuration
- Returns:
- the
ServerKeyDatabase.Configuration.StrictHostKeyChecking
-
getHashKnownHosts
public boolean getHashKnownHosts()Description copied from interface:ServerKeyDatabase.Configuration
Obtains the value of the "HashKnownHosts" ssh config.- Specified by:
getHashKnownHosts
in interfaceServerKeyDatabase.Configuration
- Returns:
true
if new entries should be stored with hashed host information,false
otherwise
-
getUsername
Description copied from interface:ServerKeyDatabase.Configuration
Obtains the user name used in the connection attempt.- Specified by:
getUsername
in interfaceServerKeyDatabase.Configuration
- Returns:
- the user name
-