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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classprotected static class -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractJGitHostKeyVerifier(TaskListener taskListener, HostKeyVerifierFactory hostKeyVerifierFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanseeOpenSshServerKeyDatabaseiftruethe implementation of $CredentialsProviderwill be search with a forCredentialItem.YesNoTypeand our implementationSmartCredentialsProvidernever returns thatorg.eclipse.jgit.transport.sshd.ServerKeyDatabaseprotected abstract org.eclipse.jgit.transport.sshd.ServerKeyDatabase.ConfigurationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jenkinsci.remoting.SerializableOnlyOverRemoting
getChannelForSerialization
-
Constructor Details
-
AbstractJGitHostKeyVerifier
protected AbstractJGitHostKeyVerifier(TaskListener taskListener, HostKeyVerifierFactory hostKeyVerifierFactory)
-
-
Method Details
-
getTaskListener
-
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
OpenSshServerKeyDatabaseiftruethe implementation of $CredentialsProviderwill be search with a forCredentialItem.YesNoTypeand our implementationSmartCredentialsProvidernever returns thatused only here for the Accept first which always create a file without asking anything
- Returns:
- something in the range
trueorfalse, per defaulttrueto avoid automatic creation of know hosts file.
-