AuthPassword Event
This event is fired on password authentication attempt from a client.
Syntax
public open class DefaultSftpserverEventListener : SftpserverEventListener { ... public override fun authPassword(e: SftpserverAuthPasswordEvent) {} ... } public class SftpserverAuthPasswordEvent { val connectionID: Long val username: String? val password: String? var accept: Boolean var forceChangePassword: Boolean }
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.