Interface PasswordAuthenticationReporter
-
public interface PasswordAuthenticationReporterUsed 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 voidsignalAuthenticationAttempt(ClientSession session, String service, String oldPassword, boolean modified, String newPassword)default voidsignalAuthenticationExhausted(ClientSession session, String service)Signals end of passwords attempts and optionally switching to other authentication methods.default voidsignalAuthenticationFailure(ClientSession session, String service, String password, boolean partial, List<String> serverMethods)default voidsignalAuthenticationSuccess(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- TheClientSessionservice- The requesting service nameoldPassword- The password being attemptedmodified-trueif this is an attempt due toSSH_MSG_USERAUTH_PASSWD_CHANGEREQnewPassword- 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: neithersignalAuthenticationSuccessnorsignalAuthenticationFailureare invoked.- Parameters:
session- TheClientSessionservice- 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- TheClientSessionservice- 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- TheClientSessionservice- The requesting service namepassword- The password that was attemptedpartial-trueif some partial authentication success so farserverMethods- TheListof authentication methods that can continue- Throws:
Exception- If failed to handle the callback - Note: may cause session close
-
-