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.booleanObtains 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.ConfigurationRetrieves the list of file names from the "UserKnownHostsFile" ssh config.- Specified by:
getUserKnownHostsFilesin interfaceServerKeyDatabase.Configuration- Returns:
- the list as configured, with ~ already replaced
-
getGlobalKnownHostsFiles
Description copied from interface:ServerKeyDatabase.ConfigurationRetrieves the list of file names from the "GlobalKnownHostsFile" ssh config.- Specified by:
getGlobalKnownHostsFilesin interfaceServerKeyDatabase.Configuration- Returns:
- the list as configured, with ~ already replaced
-
getStrictHostKeyChecking
Description copied from interface:ServerKeyDatabase.ConfigurationObtains the value of the "StrictHostKeyChecking" ssh config.- Specified by:
getStrictHostKeyCheckingin interfaceServerKeyDatabase.Configuration- Returns:
- the
ServerKeyDatabase.Configuration.StrictHostKeyChecking
-
getHashKnownHosts
public boolean getHashKnownHosts()Description copied from interface:ServerKeyDatabase.ConfigurationObtains the value of the "HashKnownHosts" ssh config.- Specified by:
getHashKnownHostsin interfaceServerKeyDatabase.Configuration- Returns:
trueif new entries should be stored with hashed host information,falseotherwise
-
getUsername
Description copied from interface:ServerKeyDatabase.ConfigurationObtains the user name used in the connection attempt.- Specified by:
getUsernamein interfaceServerKeyDatabase.Configuration- Returns:
- the user name
-