public class AuthorizedKeyEntriesPublickeyAuthenticator extends AbstractLoggingBean implements PublickeyAuthenticator
Collection
of AuthorizedKeyEntry
s
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, warn
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
fromAuthorizedEntries
public static final AttributeRepository.AttributeKey<AuthorizedKeyEntry> AUTHORIZED_KEY
public AuthorizedKeyEntriesPublickeyAuthenticator(Object id, ServerSession session, Collection<? extends AuthorizedKeyEntry> entries, PublicKeyEntryResolver fallbackResolver) throws IOException, GeneralSecurityException
IOException
GeneralSecurityException
public Object getId()
toString()
public boolean authenticate(String username, PublicKey key, ServerSession session)
PublickeyAuthenticator
authenticate
in interface PublickeyAuthenticator
username
- the usernamekey
- the keysession
- the server sessionCopyright © 2008–2024 The Apache Software Foundation. All rights reserved.