PublickeyAuthenticator is used on the server side to authenticate user public keys.
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: a boolean indicating if authentication succeeded or notthe username username, PublicKey the key key, ServerSession the server session session)Check the validity of a public key. |
| public static PublickeyAuthenticator | Returns: A wrapper with all the parsed keysSome kind of mnemonic identifier for the authenticator - used also in
id, ServerSession toString()The session, Collection<? extends AuthorizedKeyEntry> ServerSession that triggered this call - may be null if
invoked by offline tool (e.g., unit test) or session context unknown to caller.The entries to parse - ignored if entries, PublicKeyEntryResolver null/emptyThe public key resolver to use if none of the default registered ones works fallbackResolver)
|
| authenticate | back to summary |
|---|---|
| public boolean authenticate(String username, PublicKey key, ServerSession session) throws AsyncAuthException Check the validity of a public key.
| |
| fromAuthorizedEntries | back to summary |
|---|---|
public static PublickeyAuthenticator fromAuthorizedEntries(Object id, ServerSession session, Collection<? extends AuthorizedKeyEntry> entries, PublicKeyEntryResolver fallbackResolver) throws IOException, GeneralSecurityException
| |