public class CachingPublicKeyAuthenticator extends AbstractLoggingBean implements PublickeyAuthenticator
OpenSSH behavior where it sends 2 requests with the same key
(see SSHD-300).| Modifier and Type | Field and Description |
|---|---|
protected PublickeyAuthenticator |
authenticator |
static AttributeRepository.AttributeKey<java.util.Map<java.security.PublicKey,java.lang.Boolean>> |
CACHE_ATTRIBUTE
The
AttributeKey used to store the cached
authentication results on the session instance |
log| Constructor and Description |
|---|
CachingPublicKeyAuthenticator(PublickeyAuthenticator authenticator) |
| 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 java.util.Map<java.security.PublicKey,java.lang.Boolean> |
resolveCachedResults(java.lang.String username,
java.security.PublicKey key,
ServerSession session) |
getSimplifiedLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfromAuthorizedEntriespublic static final AttributeRepository.AttributeKey<java.util.Map<java.security.PublicKey,java.lang.Boolean>> CACHE_ATTRIBUTE
AttributeKey used to store the cached
authentication results on the session instanceprotected final PublickeyAuthenticator authenticator
public CachingPublicKeyAuthenticator(PublickeyAuthenticator authenticator)
public boolean authenticate(java.lang.String username,
java.security.PublicKey key,
ServerSession session)
PublickeyAuthenticatorauthenticate in interface PublickeyAuthenticatorusername - the usernamekey - the keysession - the server sessionprotected java.util.Map<java.security.PublicKey,java.lang.Boolean> resolveCachedResults(java.lang.String username,
java.security.PublicKey key,
ServerSession session)