Class PromiscuousVerifier
- java.lang.Object
-
- net.schmizz.sshj.transport.verification.PromiscuousVerifier
-
- All Implemented Interfaces:
HostKeyVerifier
public final class PromiscuousVerifier extends java.lang.Object implements HostKeyVerifier
-
-
Constructor Summary
Constructors Constructor Description PromiscuousVerifier()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanverify(java.lang.String hostname, int port, java.security.PublicKey key)This callback is invoked when the server's host key needs to be verified.
-
-
-
Method Detail
-
verify
public boolean verify(java.lang.String hostname, int port, java.security.PublicKey key)Description copied from interface:HostKeyVerifierThis callback is invoked when the server's host key needs to be verified. The return value indicates to the caller whether the SSH connection should proceed. Note: host key verification is the basis for security in SSH, therefore exercise due caution in implementing!- Specified by:
verifyin interfaceHostKeyVerifier- Parameters:
hostname- remote hostnameport- remote portkey- host key of server- Returns:
trueif key is acceptable,falseotherwise
-
-