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
Modifier and TypeClassDescriptionprotected static class
protected static class
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractJGitHostKeyVerifier
(TaskListener taskListener, HostKeyVerifierFactory hostKeyVerifierFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
seeOpenSshServerKeyDatabase
iftrue
the implementation of $CredentialsProvider
will be search with a forCredentialItem.YesNoType
and our implementationSmartCredentialsProvider
never returns thatorg.eclipse.jgit.transport.sshd.ServerKeyDatabase
protected abstract org.eclipse.jgit.transport.sshd.ServerKeyDatabase.Configuration
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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
OpenSshServerKeyDatabase
iftrue
the implementation of $CredentialsProvider
will be search with a forCredentialItem.YesNoType
and our implementationSmartCredentialsProvider
never returns thatused only here for the Accept first which always create a file without asking anything
- Returns:
- something in the range
true
orfalse
, per defaulttrue
to avoid automatic creation of know hosts file.
-