@FunctionalInterface
public interface PublickeyAuthenticator
PublickeyAuthenticator
is used on the server side
to authenticate user public keys.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.
|
boolean authenticate(java.lang.String username, java.security.PublicKey key, ServerSession session) throws AsyncAuthException
username
- the usernamekey
- the keysession
- the server sessionAsyncAuthException
- If the authentication is performed asynchronously