public class ManuallyProvidedKeyVerificationStrategy extends SshHostKeyVerificationStrategy
| Modifier and Type | Class and Description |
|---|---|
static class |
ManuallyProvidedKeyVerificationStrategy.ManuallyProvidedKeyVerificationStrategyDescriptor |
SshHostKeyVerificationStrategy.SshHostKeyVerificationStrategyDescriptor| Constructor and Description |
|---|
ManuallyProvidedKeyVerificationStrategy(String key) |
| Modifier and Type | Method and Description |
|---|---|
String |
getKey() |
HostKey |
getParsedKey() |
String[] |
getPreferredKeyAlgorithms(hudson.slaves.SlaveComputer computer)
Provides a list of preferred key algorithms for this strategy and computer.
|
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 ManuallyProvidedKeyVerificationStrategy(String key)
public String getKey()
public HostKey getParsedKey()
public boolean verify(hudson.slaves.SlaveComputer computer,
HostKey hostKey,
hudson.model.TaskListener listener)
throws Exception
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 toExceptionpublic String[] getPreferredKeyAlgorithms(hudson.slaves.SlaveComputer computer) throws IOException
SshHostKeyVerificationStrategygetPreferredKeyAlgorithms in class SshHostKeyVerificationStrategyIOExceptionConnection.setServerHostKeyAlgorithms(java.lang.String[])Copyright © 2016–2017. All rights reserved.