Class AcceptFirstConnectionVerifier.AcceptFirstConnectionJGitHostKeyVerifier
java.lang.Object
org.jenkinsci.plugins.gitclient.verifier.AbstractJGitHostKeyVerifier
org.jenkinsci.plugins.gitclient.verifier.AcceptFirstConnectionVerifier.AcceptFirstConnectionJGitHostKeyVerifier
- All Implemented Interfaces:
Serializable
,org.jenkinsci.remoting.SerializableOnlyOverRemoting
- Enclosing class:
- AcceptFirstConnectionVerifier
public static class AcceptFirstConnectionVerifier.AcceptFirstConnectionJGitHostKeyVerifier
extends AbstractJGitHostKeyVerifier
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jenkinsci.plugins.gitclient.verifier.AbstractJGitHostKeyVerifier
AbstractJGitHostKeyVerifier.DefaultConfiguration, AbstractJGitHostKeyVerifier.JenkinsServerKeyDatabase
-
Constructor Summary
ConstructorDescriptionAcceptFirstConnectionJGitHostKeyVerifier
(TaskListener listener, 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.Configuration
Methods inherited from class org.jenkinsci.plugins.gitclient.verifier.AbstractJGitHostKeyVerifier
getHostKeyVerifierFactory, getServerKeyDatabase, getTaskListener
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
-
AcceptFirstConnectionJGitHostKeyVerifier
public AcceptFirstConnectionJGitHostKeyVerifier(TaskListener listener, HostKeyVerifierFactory hostKeyVerifierFactory)
-
-
Method Details
-
askAboutKnowHostFile
protected boolean askAboutKnowHostFile()Description copied from class:AbstractJGitHostKeyVerifier
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
- Overrides:
askAboutKnowHostFile
in classAbstractJGitHostKeyVerifier
- Returns:
- something in the range
true
orfalse
, per defaulttrue
to avoid automatic creation of know hosts file.
-
getServerKeyDatabaseConfiguration
public org.eclipse.jgit.transport.sshd.ServerKeyDatabase.Configuration getServerKeyDatabaseConfiguration()- Specified by:
getServerKeyDatabaseConfiguration
in classAbstractJGitHostKeyVerifier
-