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 |
private java.lang.Object |
id |
private java.util.Map<AuthorizedKeyEntry,java.security.PublicKey> |
resolvedKeys |
log| Constructor and Description |
|---|
AuthorizedKeyEntriesPublickeyAuthenticator(java.lang.Object id,
ServerSession session,
java.util.Collection<? extends AuthorizedKeyEntry> entries,
PublicKeyEntryResolver fallbackResolver) |
| 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.
|
java.lang.Object |
getId() |
java.lang.String |
toString() |
getSimplifiedLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfromAuthorizedEntriespublic static final AttributeRepository.AttributeKey<AuthorizedKeyEntry> AUTHORIZED_KEY
private java.util.Map<AuthorizedKeyEntry,java.security.PublicKey> resolvedKeys
private java.lang.Object id
public AuthorizedKeyEntriesPublickeyAuthenticator(java.lang.Object id,
ServerSession session,
java.util.Collection<? extends AuthorizedKeyEntry> entries,
PublicKeyEntryResolver fallbackResolver)
throws java.io.IOException,
java.security.GeneralSecurityException
java.io.IOExceptionjava.security.GeneralSecurityExceptionpublic java.lang.Object getId()
toString()public boolean authenticate(java.lang.String username,
java.security.PublicKey key,
ServerSession session)
PublickeyAuthenticatorauthenticate in interface PublickeyAuthenticatorusername - the usernamekey - the keysession - the server sessionpublic java.lang.String toString()
toString in class java.lang.Object