public abstract class StaticPublickeyAuthenticator extends AbstractLoggingBean implements PublickeyAuthenticator
true/false
regardlesslog
Modifier | Constructor and Description |
---|---|
protected |
StaticPublickeyAuthenticator(boolean acceptance) |
Modifier and Type | Method and Description |
---|---|
boolean |
authenticate(String username,
PublicKey key,
ServerSession session)
Check the validity of a public key.
|
protected void |
handleAcceptance(String username,
PublicKey key,
ServerSession session) |
protected void |
handleRejection(String username,
PublicKey key,
ServerSession session) |
boolean |
isAccepted() |
getSimplifiedLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
fromAuthorizedEntries
protected StaticPublickeyAuthenticator(boolean acceptance)
public final boolean isAccepted()
public final boolean authenticate(String username, PublicKey key, ServerSession session)
PublickeyAuthenticator
authenticate
in interface PublickeyAuthenticator
username
- the usernamekey
- the keysession
- the server sessionprotected void handleAcceptance(String username, PublicKey key, ServerSession session)
protected void handleRejection(String username, PublicKey key, ServerSession session)
Copyright © 2008–2022 The Apache Software Foundation. All rights reserved.