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
HostKeyVerification
verifyHost
in interface HostKeyVerification
host
- the name of the connected hostpk
- the public key supplied by the hosttrue
if the host key is acceptable otherwise
false
SshException
Copyright © 2024. All rights reserved.