public class HostKeyVerificationManager extends java.lang.Object implements HostKeyVerification
| Constructor and Description |
|---|
HostKeyVerificationManager(java.util.Collection<? extends HostKeyVerification> verifiers) |
HostKeyVerificationManager(HostKeyVerification... verifs) |
HostKeyVerificationManager(HostKeyVerification verif) |
| Modifier and Type | Method and Description |
|---|---|
void |
addVerifier(HostKeyVerification verif) |
boolean |
verifyHost(java.lang.String host,
SshPublicKey pk)
Verify that the public key is acceptable for the host.
|
public HostKeyVerificationManager(java.util.Collection<? extends HostKeyVerification> verifiers)
public HostKeyVerificationManager(HostKeyVerification verif)
public HostKeyVerificationManager(HostKeyVerification... verifs)
public void addVerifier(HostKeyVerification verif)
public boolean verifyHost(java.lang.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 © 2022. All rights reserved.