Package com.sshtools.common.knownhosts
Class HostKeyVerificationManager
java.lang.Object
com.sshtools.common.knownhosts.HostKeyVerificationManager
- All Implemented Interfaces:
HostKeyVerification
-
Constructor Summary
ConstructorsConstructorDescriptionHostKeyVerificationManager(HostKeyVerification... verifs) HostKeyVerificationManager(Collection<? extends HostKeyVerification> verifiers) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddVerifier(HostKeyVerification verif) booleanverifyHost(String host, SshPublicKey pk) Verify that the public key is acceptable for the host.
-
Constructor Details
-
HostKeyVerificationManager
-
HostKeyVerificationManager
-
HostKeyVerificationManager
-
-
Method Details
-
addVerifier
-
verifyHost
Description copied from interface:HostKeyVerificationVerify that the public key is acceptable for the host.- Specified by:
verifyHostin interfaceHostKeyVerification- Parameters:
host- the name of the connected hostpk- the public key supplied by the host- Returns:
trueif the host key is acceptable otherwisefalse- Throws:
SshException
-