Interface PasswordAuthenticationReporter
-
public interface PasswordAuthenticationReporter
Used to inform the about the progress of a password authentication- Author:
- Apache MINA SSHD Project
- See Also:
- RFC-4252 section 8
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
signalAuthenticationAttempt(ClientSession session, String service, String oldPassword, boolean modified, String newPassword)
default void
signalAuthenticationExhausted(ClientSession session, String service)
Signals end of passwords attempts and optionally switching to other authentication methods.default void
signalAuthenticationFailure(ClientSession session, String service, String password, boolean partial, List<String> serverMethods)
default void
signalAuthenticationSuccess(ClientSession session, String service, String password)
-
-
-
Method Detail
-
signalAuthenticationAttempt
default void signalAuthenticationAttempt(ClientSession session, String service, String oldPassword, boolean modified, String newPassword) throws Exception
- Parameters:
session
- TheClientSession
service
- The requesting service nameoldPassword
- The password being attemptedmodified
-true
if this is an attempt due toSSH_MSG_USERAUTH_PASSWD_CHANGEREQ
newPassword
- The changed password- Throws:
Exception
- If failed to handle the callback - Note: may cause session close
-
signalAuthenticationExhausted
default void signalAuthenticationExhausted(ClientSession session, String service) throws Exception
Signals end of passwords attempts and optionally switching to other authentication methods. Note: neithersignalAuthenticationSuccess
norsignalAuthenticationFailure
are invoked.- Parameters:
session
- TheClientSession
service
- The requesting service name- Throws:
Exception
- If failed to handle the callback - Note: may cause session close
-
signalAuthenticationSuccess
default void signalAuthenticationSuccess(ClientSession session, String service, String password) throws Exception
- Parameters:
session
- TheClientSession
service
- The requesting service namepassword
- The password that was attempted- Throws:
Exception
- If failed to handle the callback - Note: may cause session close
-
signalAuthenticationFailure
default void signalAuthenticationFailure(ClientSession session, String service, String password, boolean partial, List<String> serverMethods) throws Exception
- Parameters:
session
- TheClientSession
service
- The requesting service namepassword
- The password that was attemptedpartial
-true
if some partial authentication success so farserverMethods
- TheList
of authentication methods that can continue- Throws:
Exception
- If failed to handle the callback - Note: may cause session close
-
-