AuthPassword Event
This event is fired on password authentication attempt from a client.
Syntax
public class DefaultSftpserverEventListener implements SftpserverEventListener { ... public void authPassword(SftpserverAuthPasswordEvent e) {} ... } public class SftpserverAuthPasswordEvent { public long connectionID; public String username; public String password; public boolean accept; public boolean forceChangePassword; }
Remarks
Parameters Username and Password contain user credentials. If they are correct, set Accept to true. You can request password change by setting ForceChangePassword to true.