|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.sshd.client.keyverifier.RequiredServerKeyVerifier
public class RequiredServerKeyVerifier
A ServerKeyVerifier that accepts one server key (specified in the constructor)
| Field Summary | |
|---|---|
protected org.slf4j.Logger |
log
|
| Constructor Summary | |
|---|---|
RequiredServerKeyVerifier(java.security.PublicKey requiredKey)
|
|
| Method Summary | |
|---|---|
boolean |
verifyServerKey(ClientSession sshClientSession,
java.net.SocketAddress remoteAddress,
java.security.PublicKey serverKey)
Verify that the server key provided is really the one of the host. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final org.slf4j.Logger log
| Constructor Detail |
|---|
public RequiredServerKeyVerifier(java.security.PublicKey requiredKey)
| Method Detail |
|---|
public boolean verifyServerKey(ClientSession sshClientSession,
java.net.SocketAddress remoteAddress,
java.security.PublicKey serverKey)
ServerKeyVerifier
verifyServerKey in interface ServerKeyVerifiersshClientSession - the current sessionremoteAddress - the hostserverKey - the presented key
true if the key is accepted for the host
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||