Package org.eclipse.jgit.transport.sshd
Interface ServerKeyDatabase.Configuration
-
- 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 List<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.List<String>getUserKnownHostsFiles()Retrieves the list of file names from the "UserKnownHostsFile" ssh config.StringgetUsername()Obtains the user name used in the connection attempt.
-
-
-
Method Detail
-
getUserKnownHostsFiles
List<String> getUserKnownHostsFiles()
Retrieves the list of file names from the "UserKnownHostsFile" ssh config.- Returns:
- the list as configured, with ~ already replaced
-
getGlobalKnownHostsFiles
List<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
-
-