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() |
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–2016 The Apache Software Foundation. All rights reserved.