Class AcceptFirstConnectionStrategy
java.lang.Object
hudson.model.AbstractDescribableImpl<SshHostKeyVerificationStrategy<T>>
org.jenkinsci.plugins.gitclient.verifier.SshHostKeyVerificationStrategy<AcceptFirstConnectionVerifier>
org.jenkinsci.plugins.gitclient.verifier.AcceptFirstConnectionStrategy
- All Implemented Interfaces:
ExtensionPoint
,Describable<SshHostKeyVerificationStrategy<AcceptFirstConnectionVerifier>>
public class AcceptFirstConnectionStrategy
extends SshHostKeyVerificationStrategy<AcceptFirstConnectionVerifier>
Accept known hosts strategy for the
host key verification strategy extension point
.
Remembers the first host key encountered for each git server and requires that the same host key must be used for later access. This is usually the most convenient setting for administrators while still providing ssh host key verification
-
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 accepts known hosts on first connection. -
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
-
AcceptFirstConnectionStrategy
@DataBoundConstructor public AcceptFirstConnectionStrategy()Creates a secure shell host key verification strategy that accepts known hosts on first connection. Remembers the first host key encountered for each git server and requires that the same host key must be used for later access.
-
-
Method Details
-
getVerifier
Returns the ssh host key verifier for this strategy.- Specified by:
getVerifier
in classSshHostKeyVerificationStrategy<AcceptFirstConnectionVerifier>
- Returns:
- ssh host key verifier for this strategy.
-