AuthAttempt Event
Fires when a connected client makes an authentication attempt.
Syntax
public class DefaultHttpserverEventListener implements HttpserverEventListener { ... public void authAttempt(HttpserverAuthAttemptEvent e) {} ... } public class HttpserverAuthAttemptEvent { public long connectionID; public String username; public String password; public boolean allow; }
Remarks
The class 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.