Package org.eclipse.jgit.transport.sshd
Interface ServerKeyDatabase.Configuration
-
- Enclosing interface:
- ServerKeyDatabase
public static interface ServerKeyDatabase.Configuration
A 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 class
ServerKeyDatabase.Configuration.StrictHostKeyChecking
The 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.boolean
getHashKnownHosts()
Obtains the value of the "HashKnownHosts" ssh config.ServerKeyDatabase.Configuration.StrictHostKeyChecking
getStrictHostKeyChecking()
Obtains the value of the "StrictHostKeyChecking" ssh config.List<String>
getUserKnownHostsFiles()
Retrieves the list of file names from the "UserKnownHostsFile" ssh config.String
getUsername()
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:
true
if new entries should be stored with hashed host information,false
otherwise
-
-