You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mina.apache.org by tw...@apache.org on 2026/09/26 14:46:42 UTC
(mina-sshd) 13/18: PublicKeyAuthenticator.authenticate(): remove AsyncAuthException
This is an automated email from the ASF dual-hosted git repository.
tomaswolf pushed a commit to branch rc-2.20.0
in repository https://gitbox.apache.org/repos/asf/mina-sshd.git
commit 602896f3e418ed1ec025feabadb1eecb2cb5f397
Author: Thomas Wolf <tw...@apache.org>
AuthorDate: Thu Sep 24 23:11:41 2026 +0200
PublicKeyAuthenticator.authenticate(): remove AsyncAuthException
Removing an unchecked exception from the interface is source and binary
compatible. Asynchronous authentication is not supported for public key
authentication.
---
.../org/apache/sshd/server/auth/pubkey/PublickeyAuthenticator.java | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/sshd-core/src/main/java/org/apache/sshd/server/auth/pubkey/PublickeyAuthenticator.java b/sshd-core/src/main/java/org/apache/sshd/server/auth/pubkey/PublickeyAuthenticator.java
index 703c5887d..2ef3dfc37 100644
--- a/sshd-core/src/main/java/org/apache/sshd/server/auth/pubkey/PublickeyAuthenticator.java
+++ b/sshd-core/src/main/java/org/apache/sshd/server/auth/pubkey/PublickeyAuthenticator.java
@@ -26,7 +26,6 @@ import java.util.Collection;
import org.apache.sshd.common.config.keys.AuthorizedKeyEntry;
import org.apache.sshd.common.config.keys.PublicKeyEntryResolver;
import org.apache.sshd.common.util.GenericUtils;
-import org.apache.sshd.server.auth.AsyncAuthException;
import org.apache.sshd.server.session.ServerSession;
/**
@@ -49,9 +48,8 @@ public interface PublickeyAuthenticator {
* @param key the key
* @param session the server session
* @return {@code true} if the key may be used; {@code false} otherwise
- * @throws AsyncAuthException If the authentication is performed asynchronously
*/
- boolean authenticate(String username, PublicKey key, ServerSession session) throws AsyncAuthException;
+ boolean authenticate(String username, PublicKey key, ServerSession session);
/**
* @param id Some kind of mnemonic identifier for the authenticator - used also in