public class HostKeyVerificationManager extends Object implements HostKeyVerification
| Constructor and Description |
|---|
HostKeyVerificationManager(Collection<? extends HostKeyVerification> verifiers) |
HostKeyVerificationManager(HostKeyVerification... verifs) |
HostKeyVerificationManager(HostKeyVerification verif) |
| Modifier and Type | Method and Description |
|---|---|
void |
addVerifier(HostKeyVerification verif) |
boolean |
verifyHost(String host,
SshPublicKey pk)
Verify that the public key is acceptable for the host.
|
public HostKeyVerificationManager(Collection<? extends HostKeyVerification> verifiers)
public HostKeyVerificationManager(HostKeyVerification verif)
public HostKeyVerificationManager(HostKeyVerification... verifs)
public void addVerifier(HostKeyVerification verif)
public boolean verifyHost(String host, SshPublicKey pk) throws SshException
HostKeyVerificationverifyHost in interface HostKeyVerificationhost - the name of the connected hostpk - the public key supplied by the hosttrue if the host key is acceptable otherwise
falseSshExceptionCopyright © 2025. All rights reserved.