AuthAttempt Event
Fires when a connected client makes an authentication attempt.
Syntax
public class DefaultFtpserverEventListener implements FtpserverEventListener { ... public void authAttempt(FtpserverAuthAttemptEvent e) {} ... } public class FtpserverAuthAttemptEvent { public long connectionID; public String username; public String password; public boolean allow; }
Remarks
The component fires this event whenever a client attempts to authenticate itself. Use the Allow parameter to let the client through.
ConnectionID contains the unique session identifier for that client, and Username and Password contain the professed credentials.