Class DelegatingServerKeyVerifier
- java.lang.Object
-
- org.apache.sshd.common.util.logging.AbstractLoggingBean
-
- org.apache.sshd.client.keyverifier.DelegatingServerKeyVerifier
-
- All Implemented Interfaces:
ServerKeyVerifier
public class DelegatingServerKeyVerifier extends AbstractLoggingBean implements ServerKeyVerifier
AServerKeyVerifierthat delegates verification to the instance found in theClientSessionmetadata The verifier can be specified at theSshClientlevel, which may have connections to multiple hosts. This technique lets each connection have its own verifier instance.- Author:
- Apache MINA SSHD Project
-
-
Field Summary
-
Fields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
log
-
-
Constructor Summary
Constructors Constructor Description DelegatingServerKeyVerifier()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanverifyServerKey(ClientSession session, SocketAddress remoteAddress, PublicKey serverKey)Verify that the server key provided is really the one of the host.
-
-
-
Method Detail
-
verifyServerKey
public boolean verifyServerKey(ClientSession session, SocketAddress remoteAddress, PublicKey serverKey)
Description copied from interface:ServerKeyVerifierVerify that the server key provided is really the one of the host.- Specified by:
verifyServerKeyin interfaceServerKeyVerifier- Parameters:
session- the currentClientSessionremoteAddress- the host'sSocketAddressserverKey- the presented serverPublicKey- Returns:
trueif the key is accepted for the host
-
-