public abstract class SshHostKeyVerificationStrategy extends Object implements hudson.model.Describable<SshHostKeyVerificationStrategy>
| Modifier and Type | Class and Description |
|---|---|
static class |
SshHostKeyVerificationStrategy.SshHostKeyVerificationStrategyDescriptor |
| Constructor and Description |
|---|
SshHostKeyVerificationStrategy() |
| Modifier and Type | Method and Description |
|---|---|
SshHostKeyVerificationStrategy.SshHostKeyVerificationStrategyDescriptor |
getDescriptor() |
String[] |
getPreferredKeyAlgorithms(hudson.slaves.SlaveComputer computer)
Provides a list of preferred key algorithms for this strategy and computer.
|
abstract boolean |
verify(hudson.slaves.SlaveComputer computer,
HostKey hostKey,
hudson.model.TaskListener listener)
Check if the given key is valid for the host identifier.
|
public SshHostKeyVerificationStrategy.SshHostKeyVerificationStrategyDescriptor getDescriptor()
getDescriptor in interface hudson.model.Describable<SshHostKeyVerificationStrategy>public abstract boolean verify(hudson.slaves.SlaveComputer computer,
HostKey hostKey,
hudson.model.TaskListener listener)
throws Exception
computer - 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 toException@CheckForNull public String[] getPreferredKeyAlgorithms(hudson.slaves.SlaveComputer computer) throws IOException
IOExceptionConnection.setServerHostKeyAlgorithms(java.lang.String[])Copyright © 2016–2017. All rights reserved.