Class AbstractJGitHostKeyVerifier

java.lang.Object
org.jenkinsci.plugins.gitclient.verifier.AbstractJGitHostKeyVerifier
All Implemented Interfaces:
Serializable, org.jenkinsci.remoting.SerializableOnlyOverRemoting
Direct Known Subclasses:
AcceptFirstConnectionVerifier.AcceptFirstConnectionJGitHostKeyVerifier, KnownHostsFileVerifier.KnownHostsFileJGitHostKeyVerifier, ManuallyProvidedKeyVerifier.ManuallyProvidedKeyJGitHostKeyVerifier, NoHostKeyVerifier.NoHostJGitKeyVerifier

public abstract class AbstractJGitHostKeyVerifier extends Object implements org.jenkinsci.remoting.SerializableOnlyOverRemoting
See Also:
  • Constructor Details

  • Method Details

    • getTaskListener

      public TaskListener getTaskListener()
    • getHostKeyVerifierFactory

      public HostKeyVerifierFactory getHostKeyVerifierFactory()
    • getServerKeyDatabaseConfiguration

      protected abstract org.eclipse.jgit.transport.sshd.ServerKeyDatabase.Configuration getServerKeyDatabaseConfiguration()
    • getServerKeyDatabase

      public org.eclipse.jgit.transport.sshd.ServerKeyDatabase getServerKeyDatabase()
    • askAboutKnowHostFile

      protected boolean askAboutKnowHostFile()

      see OpenSshServerKeyDatabase if true the implementation of $CredentialsProvider will be search with a for CredentialItem.YesNoType and our implementation SmartCredentialsProvider never returns that

      used only here for the Accept first which always create a file without asking anything

      Returns:
      something in the range true or false, per default true to avoid automatic creation of know hosts file.