Package org.eclipse.swt.browser
Interface AuthenticationListener
-
- All Superinterfaces:
EventListener,SWTEventListener
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface AuthenticationListener extends SWTEventListener
This listener interface may be implemented in order to receive anAuthenticationEventnotification when theBrowserencounters a page that requires authentication.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidauthenticate(AuthenticationEvent event)This method is called when a page is navigated to that requires authentication.
-
-
-
Method Detail
-
authenticate
void authenticate(AuthenticationEvent event)
This method is called when a page is navigated to that requires authentication.Setting both the event's
userandpasswordfields causes these values to be used as credentials for authentication. Leaving one or both of these fields asnullindicates that credentials are not known, so an authentication prompter should be shown to the user. Otherwise, setting the event'sdoitfield tofalsecancels the authentication challenge, and the page will not be loaded.The following fields in the
AuthenticationEventapply:- (in) widget the
Browserthat is attempting to show the page that requires authentication - (in) location the location issuing the authentication challenge
- (in/out) doit can be set to
falseto cancel the authentication challenge - (out) user the user name to authenticate with
- (out) password the password to authenticate with
- Parameters:
event- theAuthenticationEventthat can be used to either supply authentication credentials, defer credential input to an authentication prompter, or cancel an authentication challenge.
- (in) widget the
-
-