public interface PasswordAuthenticationReporter
Modifier and Type | Method and 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) |
default void signalAuthenticationAttempt(ClientSession session, String service, String oldPassword, boolean modified, String newPassword) throws Exception
session
- The ClientSession
service
- The requesting service nameoldPassword
- The password being attemptedmodified
- true
if this is an attempt due to SSH_MSG_USERAUTH_PASSWD_CHANGEREQ
newPassword
- The changed passwordException
- If failed to handle the callback - Note: may cause session closedefault void signalAuthenticationExhausted(ClientSession session, String service) throws Exception
signalAuthenticationSuccess
nor
signalAuthenticationFailure
are invoked.session
- The ClientSession
service
- The requesting service nameException
- If failed to handle the callback - Note: may cause session closedefault void signalAuthenticationSuccess(ClientSession session, String service, String password) throws Exception
session
- The ClientSession
service
- The requesting service namepassword
- The password that was attemptedException
- If failed to handle the callback - Note: may cause session closedefault void signalAuthenticationFailure(ClientSession session, String service, String password, boolean partial, List<String> serverMethods) throws Exception
session
- The ClientSession
service
- The requesting service namepassword
- The password that was attemptedpartial
- true
if some partial authentication success so farserverMethods
- The List
of authentication methods that can continueException
- If failed to handle the callback - Note: may cause session closeCopyright © 2008–2024 The Apache Software Foundation. All rights reserved.