public class ManuallyTrustedKeyVerificationStrategy extends SshHostKeyVerificationStrategy
TrustHostKeyAction to the Computer the connection is being initiated for that can
be actioned by a user with the appropriate permission to add a new key or replace an existing
key in the known hosts database.| Modifier and Type | Class and Description |
|---|---|
static class |
ManuallyTrustedKeyVerificationStrategy.ManuallyTrustedKeyVerificationStrategyDescriptor |
SshHostKeyVerificationStrategy.SshHostKeyVerificationStrategyDescriptor| Constructor and Description |
|---|
ManuallyTrustedKeyVerificationStrategy(boolean requireInitialManualTrust) |
| Modifier and Type | Method and Description |
|---|---|
String[] |
getPreferredKeyAlgorithms(hudson.slaves.SlaveComputer computer) |
boolean |
isRequireInitialManualTrust() |
boolean |
verify(hudson.slaves.SlaveComputer computer,
HostKey hostKey,
hudson.model.TaskListener listener)
Check if the given key is valid for the host identifier.
|
getDescriptor@DataBoundConstructor public ManuallyTrustedKeyVerificationStrategy(boolean requireInitialManualTrust)
public boolean isRequireInitialManualTrust()
public boolean verify(hudson.slaves.SlaveComputer computer,
HostKey hostKey,
hudson.model.TaskListener listener)
throws IOException
SshHostKeyVerificationStrategyverify in class SshHostKeyVerificationStrategycomputer - the computer this connection is being initiated forhostKey - the key that was transmitted by the remote host for the current connection. This is the key
that should be checked to see if we trust it by the current verifier.listener - the connection listener to write any output log toIOExceptionpublic String[] getPreferredKeyAlgorithms(hudson.slaves.SlaveComputer computer) throws IOException
getPreferredKeyAlgorithms in class SshHostKeyVerificationStrategyIOExceptionCopyright © 2016–2017. All rights reserved.