Package org.eclipse.jgit.transport.sshd
Interface ServerKeyDatabase.Configuration
-
- All Known Implementing Classes:
JGitServerKeyVerifier.SessionConfig
- Enclosing interface:
- ServerKeyDatabase
public static interface ServerKeyDatabase.ConfigurationA simple provider for ssh config settings related to host key checking. An instance is created by the JGit sshd framework and passed intoServerKeyDatabase.lookup(String, InetSocketAddress, Configuration)andServerKeyDatabase.accept(String, InetSocketAddress, PublicKey, Configuration, CredentialsProvider).
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classServerKeyDatabase.Configuration.StrictHostKeyCheckingThe possible values for the "StrictHostKeyChecking" ssh config.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<java.lang.String>getGlobalKnownHostsFiles()Retrieves the list of file names from the "GlobalKnownHostsFile" ssh config.booleangetHashKnownHosts()Obtains the value of the "HashKnownHosts" ssh config.ServerKeyDatabase.Configuration.StrictHostKeyCheckinggetStrictHostKeyChecking()Obtains the value of the "StrictHostKeyChecking" ssh config.java.util.List<java.lang.String>getUserKnownHostsFiles()Retrieves the list of file names from the "UserKnownHostsFile" ssh config.java.lang.StringgetUsername()Obtains the user name used in the connection attempt.
-
-
-
Method Detail
-
getUserKnownHostsFiles
java.util.List<java.lang.String> getUserKnownHostsFiles()
Retrieves the list of file names from the "UserKnownHostsFile" ssh config.- Returns:
- the list as configured, with ~ already replaced
-
getGlobalKnownHostsFiles
java.util.List<java.lang.String> getGlobalKnownHostsFiles()
Retrieves the list of file names from the "GlobalKnownHostsFile" ssh config.- Returns:
- the list as configured, with ~ already replaced
-
getStrictHostKeyChecking
@NonNull ServerKeyDatabase.Configuration.StrictHostKeyChecking getStrictHostKeyChecking()
Obtains the value of the "StrictHostKeyChecking" ssh config.
-
getHashKnownHosts
boolean getHashKnownHosts()
Obtains the value of the "HashKnownHosts" ssh config.- Returns:
trueif new entries should be stored with hashed host information,falseotherwise
-
getUsername
@NonNull java.lang.String getUsername()
Obtains the user name used in the connection attempt.- Returns:
- the user name
-
-