Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.swt.browser
Interface AuthenticationListener

All Superinterfaces:
EventListener, org.eclipse.swt.internal.SWTEventListener

public interface AuthenticationListener
extends org.eclipse.swt.internal.SWTEventListener

This listener interface may be implemented in order to receive an AuthenticationEvent notification when the Browser encounters a page that requires authentication.

Since:
3.5
See Also:
Browser.addAuthenticationListener(AuthenticationListener), Browser.removeAuthenticationListener(AuthenticationListener)

Method Summary
 void authenticate ( 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 user and password fields causes these values to be used as credentials for authentication. Leaving one or both of these fields as null indicates that credentials are not known, so an authentication prompter should be shown to the user. Otherwise, setting the event's doit field to false cancels the authentication challenge, and the page will not be loaded.

The following fields in the AuthenticationEvent apply:

  • (in) widget the Browser that is attempting to show the page that requires authentication
  • (in) location the location issuing the authentication challenge
  • (in/out) doit can be set to false to cancel the authentication challenge
  • (out) user the user name to authenticate with
  • (out) password the password to authenticate with

Parameters:
event - the AuthenticationEvent that can be used to either supply authentication credentials, defer credential input to an authentication prompter, or cancel an authentication challenge.

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire