@FunctionalInterface public interface PublickeyAuthenticator
PublickeyAuthenticator is used on the server side
to authenticate user public keys.| Modifier and Type | Method and Description |
|---|---|
boolean |
authenticate(String username,
PublicKey key,
ServerSession session)
Check the validity of a public key.
|
static PublickeyAuthenticator |
fromAuthorizedEntries(PublicKeyEntryResolver fallbackResolver,
Collection<? extends AuthorizedKeyEntry> entries) |
boolean authenticate(String username, PublicKey key, ServerSession session) throws AsyncAuthException
username - the usernamekey - the keysession - the server sessionAsyncAuthException - If the authentication is performed asynchronouslystatic PublickeyAuthenticator fromAuthorizedEntries(PublicKeyEntryResolver fallbackResolver, Collection<? extends AuthorizedKeyEntry> entries) throws IOException, GeneralSecurityException
IOExceptionGeneralSecurityExceptionCopyright © 2008–2018 The Apache Software Foundation. All rights reserved.