Interface ServerKeyVerifier
-
- All Known Implementing Classes:
AcceptAllServerKeyVerifier
,DefaultKnownHostsServerKeyVerifier
,DelegatingServerKeyVerifier
,KnownHostsServerKeyVerifier
,RejectAllServerKeyVerifier
,RequiredServerKeyVerifier
,StaticServerKeyVerifier
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ServerKeyVerifier
TheServerKeyVerifier
is used on the client side to authenticate the key provided by the server.- Author:
- Apache MINA SSHD Project
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
verifyServerKey(ClientSession clientSession, SocketAddress remoteAddress, PublicKey serverKey)
Verify that the server key provided is really the one of the host.
-
-
-
Method Detail
-
verifyServerKey
boolean verifyServerKey(ClientSession clientSession, SocketAddress remoteAddress, PublicKey serverKey)
Verify that the server key provided is really the one of the host.- Parameters:
clientSession
- the currentClientSession
remoteAddress
- the host'sSocketAddress
serverKey
- the presented serverPublicKey
- Returns:
true
if the key is accepted for the host
-
-