public class AuthorizedKeyEntriesPublickeyAuthenticator extends AbstractLoggingBean implements PublickeyAuthenticator
Collection of AuthorizedKeyEntrys
Records the matched entry under a session attribute.| Modifier and Type | Field and Description |
|---|---|
static AttributeRepository.AttributeKey<AuthorizedKeyEntry> |
AUTHORIZED_KEY |
log| Constructor and Description |
|---|
AuthorizedKeyEntriesPublickeyAuthenticator(Object id,
ServerSession session,
Collection<? extends AuthorizedKeyEntry> entries,
PublicKeyEntryResolver fallbackResolver) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
authenticate(String username,
PublicKey key,
ServerSession session)
Check the validity of a public key.
|
Object |
getId() |
String |
toString() |
debug, debug, debug, debug, debug, error, error, error, error, error, getSimplifiedLogger, info, info, warn, warn, warn, warn, warn, warn, warn, warnclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfromAuthorizedEntriespublic static final AttributeRepository.AttributeKey<AuthorizedKeyEntry> AUTHORIZED_KEY
public AuthorizedKeyEntriesPublickeyAuthenticator(Object id, ServerSession session, Collection<? extends AuthorizedKeyEntry> entries, PublicKeyEntryResolver fallbackResolver) throws IOException, GeneralSecurityException
IOExceptionGeneralSecurityExceptionpublic Object getId()
toString()public boolean authenticate(String username, PublicKey key, ServerSession session)
PublickeyAuthenticatorauthenticate in interface PublickeyAuthenticatorusername - the usernamekey - the keysession - the server sessionCopyright © 2008–2021 The Apache Software Foundation. All rights reserved.