Package hudson.plugins.ec2.ssh.verifiers
Class SshHostKeyVerificationStrategy
java.lang.Object
hudson.plugins.ec2.ssh.verifiers.SshHostKeyVerificationStrategy
- All Implemented Interfaces:
Describable<SshHostKeyVerificationStrategy>
- Direct Known Subclasses:
AcceptNewStrategy,CheckNewHardStrategy,CheckNewSoftStrategy,NonVerifyingKeyVerificationStrategy
public abstract class SshHostKeyVerificationStrategy
extends Object
implements Describable<SshHostKeyVerificationStrategy>
A method for verifying the host key provided by the remote host during the
initiation of each connection.
- Since:
- TODO
- Author:
- Michael Clarke
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract booleanverify(EC2Computer computer, HostKey hostKey, TaskListener listener) Check if the given key is valid for the host identifier.booleanverify(EC2Computer computer, PublicKey serverKey, TaskListener listener) Check if the given key is valid for the host identifier.
-
Constructor Details
-
SshHostKeyVerificationStrategy
public SshHostKeyVerificationStrategy()
-
-
Method Details
-
getDescriptor
- Specified by:
getDescriptorin interfaceDescribable<SshHostKeyVerificationStrategy>
-
verify
public abstract boolean verify(EC2Computer computer, HostKey hostKey, TaskListener listener) throws Exception Check if the given key is valid for the host identifier.- Parameters:
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 to- Returns:
- whether the provided HostKey is trusted and the current connection can therefore continue.
- Throws:
Exception- Since:
- 1.12
-
verify
public boolean verify(EC2Computer computer, PublicKey serverKey, TaskListener listener) throws Exception Check if the given key is valid for the host identifier.- Parameters:
computer- the computer this connection is being initiated forserverKey- thePublicKeythat 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 to- Returns:
- whether the provided
PublicKeyis trusted and the current connection can therefore continue. - Throws:
Exception- Since:
- TODO
-