Class ManuallyProvidedKeyVerificationStrategy
java.lang.Object
hudson.model.AbstractDescribableImpl<SshHostKeyVerificationStrategy<T>>
org.jenkinsci.plugins.gitclient.verifier.SshHostKeyVerificationStrategy<ManuallyProvidedKeyVerifier>
org.jenkinsci.plugins.gitclient.verifier.ManuallyProvidedKeyVerificationStrategy
- All Implemented Interfaces:
ExtensionPoint
,Describable<SshHostKeyVerificationStrategy<ManuallyProvidedKeyVerifier>>
public class ManuallyProvidedKeyVerificationStrategy
extends SshHostKeyVerificationStrategy<ManuallyProvidedKeyVerifier>
Manually provided host key strategy for the
host key verification strategy extension point
.
Provides a form field where the administrator inserts the host keys for the git repository servers. This works well when a small set of repository servers meet the needs of most users
-
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
ConstructorsConstructorDescriptionManuallyProvidedKeyVerificationStrategy
(String approvedHostKeys) Creates a secure shell host key verification strategy that uses the host keys provided by the Jenkins administrator. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the approved host keys.Returns the ssh host key verifier for this strategy.int
hashCode()
Methods inherited from class org.jenkinsci.plugins.gitclient.verifier.SshHostKeyVerificationStrategy
getDescriptor
-
Constructor Details
-
ManuallyProvidedKeyVerificationStrategy
Creates a secure shell host key verification strategy that uses the host keys provided by the Jenkins administrator. This works well when a small set of repository servers meet the needs of most users
-
-
Method Details
-
getVerifier
Returns the ssh host key verifier for this strategy.- Specified by:
getVerifier
in classSshHostKeyVerificationStrategy<ManuallyProvidedKeyVerifier>
- Returns:
- ssh host key verifier for this strategy.
-
getApprovedHostKeys
Returns the approved host keys.- Returns:
- approved host keys
-
equals
-
hashCode
public int hashCode()
-