Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.greenstone.gatherer
Class GAuthenticator  view GAuthenticator download GAuthenticator.java

java.lang.Object
  extended byjava.net.Authenticator
      extended byorg.greenstone.gatherer.GAuthenticator

public class GAuthenticator
extends java.net.Authenticator

Provides a graphic authenticator for network password requests.

Version:
2.3

Nested Class Summary
private  class GAuthenticator.AuthenticationActionListener
          Detects actions upon any control that attempt to submit the current details for authentication.
private  class GAuthenticator.RequestFocusListener
          This listener detects actions on registered controls, and when they occur ensures the focus is moved to some targetted component.
 
Field Summary
private  boolean authentication_cancelled
          Indicates if this authentication prompt been cancelled, and if so rolls-back authentication.
private  javax.swing.JButton cancel_button
          The button used to cancel a prompt.
private  javax.swing.JDialog dialog
          A reference to the dialog prompt created so inner classes can dispose of it.
private  javax.swing.JButton ok_button
          The button used to submit the login/password.
private  javax.swing.JPasswordField password
          The password is a special starred out password field.
private static java.awt.Dimension SIZE
          The default size of this dialog.
 
Fields inherited from class java.net.Authenticator
 
Constructor Summary
GAuthenticator()
          Constructor.
 
Method Summary
protected  java.net.PasswordAuthentication getPasswordAuthentication()
          Prompt the user for authentication using a pretty dialog box.
 
Methods inherited from class java.net.Authenticator
getRequestingHost, getRequestingPort, getRequestingPrompt, getRequestingProtocol, getRequestingScheme, getRequestingSite, requestPasswordAuthentication, requestPasswordAuthentication, setDefault
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

authentication_cancelled

private boolean authentication_cancelled
Indicates if this authentication prompt been cancelled, and if so rolls-back authentication.


cancel_button

private javax.swing.JButton cancel_button
The button used to cancel a prompt.


ok_button

private javax.swing.JButton ok_button
The button used to submit the login/password.


dialog

private javax.swing.JDialog dialog
A reference to the dialog prompt created so inner classes can dispose of it.


password

private javax.swing.JPasswordField password
The password is a special starred out password field.


SIZE

private static final java.awt.Dimension SIZE
The default size of this dialog.

Constructor Detail

GAuthenticator

public GAuthenticator()
Constructor.

Method Detail

getPasswordAuthentication

protected java.net.PasswordAuthentication getPasswordAuthentication()
Prompt the user for authentication using a pretty dialog box.