public abstract class StaticPublickeyAuthenticator extends AbstractLoggingBean implements PublickeyAuthenticator
true/false
regardlessModifier and Type | Field and Description |
---|---|
private boolean |
acceptance |
log
Modifier | Constructor and Description |
---|---|
protected |
StaticPublickeyAuthenticator(boolean acceptance) |
Modifier and Type | Method and Description |
---|---|
boolean |
authenticate(java.lang.String username,
java.security.PublicKey key,
ServerSession session)
Check the validity of a public key.
|
protected void |
handleAcceptance(java.lang.String username,
java.security.PublicKey key,
ServerSession session) |
protected void |
handleRejection(java.lang.String username,
java.security.PublicKey key,
ServerSession session) |
boolean |
isAccepted() |
getSimplifiedLogger
protected StaticPublickeyAuthenticator(boolean acceptance)
public final boolean isAccepted()
public final boolean authenticate(java.lang.String username, java.security.PublicKey key, ServerSession session)
PublickeyAuthenticator
authenticate
in interface PublickeyAuthenticator
username
- the usernamekey
- the keysession
- the server sessionprotected void handleAcceptance(java.lang.String username, java.security.PublicKey key, ServerSession session)
protected void handleRejection(java.lang.String username, java.security.PublicKey key, ServerSession session)