Class KnownHostsFileVerificationStrategy
java.lang.Object
hudson.model.AbstractDescribableImpl<SshHostKeyVerificationStrategy<T>>
org.jenkinsci.plugins.gitclient.verifier.SshHostKeyVerificationStrategy<KnownHostsFileVerifier>
org.jenkinsci.plugins.gitclient.verifier.KnownHostsFileVerificationStrategy
- All Implemented Interfaces:
ExtensionPoint
,Describable<SshHostKeyVerificationStrategy<KnownHostsFileVerifier>>
public class KnownHostsFileVerificationStrategy
extends SshHostKeyVerificationStrategy<KnownHostsFileVerifier>
Known hosts strategy for the
host key verification strategy extension point
.
Uses the existing 'known_hosts' file on the controller and on the agent. This assumes the administrator has already configured this file on the controller and on all agents
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Fields inherited from class org.jenkinsci.plugins.gitclient.verifier.SshHostKeyVerificationStrategy
JGIT_KNOWN_HOSTS_FILE, KNOWN_HOSTS_DEFAULT
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a secure shell host key verification strategy that uses the existing 'known_hosts' file on the controller and on the agent. -
Method Summary
Modifier and TypeMethodDescriptionReturns the ssh host key verifier for this strategy.Methods inherited from class org.jenkinsci.plugins.gitclient.verifier.SshHostKeyVerificationStrategy
getDescriptor
-
Constructor Details
-
KnownHostsFileVerificationStrategy
@DataBoundConstructor public KnownHostsFileVerificationStrategy()Creates a secure shell host key verification strategy that uses the existing 'known_hosts' file on the controller and on the agent. This assumes the administrator has already configured this file on the controller and on all agents
-
-
Method Details
-
getVerifier
Returns the ssh host key verifier for this strategy.- Specified by:
getVerifier
in classSshHostKeyVerificationStrategy<KnownHostsFileVerifier>
- Returns:
- ssh host key verifier for this strategy.
-