public abstract class SshHostKeyVerificationStrategy extends Object implements 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() |
abstract boolean |
verify(EC2Computer computer,
HostKey hostKey,
TaskListener listener)
Check if the given key is valid for the host identifier.
|
public SshHostKeyVerificationStrategy.SshHostKeyVerificationStrategyDescriptor getDescriptor()
getDescriptor
in interface Describable<SshHostKeyVerificationStrategy>
public abstract boolean verify(EC2Computer computer, HostKey hostKey, 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
Copyright © 2016–2022. All rights reserved.