Changeset 5315


Ignore:
Timestamp:
2003-08-28T12:35:07+12:00 (21 years ago)
Author:
jmt12
Message:

Now the authenticator stores a record of various authentications allowing other parts of GLI, such as the mirroring module, to use login/passes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/GAuthenticator.java

    r4675 r5315  
    7171    private JPasswordField password = null;
    7272    /** The default size of this dialog. */
    73     static final private Dimension SIZE = new Dimension(410,130);
     73    static final private Dimension SIZE = new Dimension(410,140);
    7474    /** Constructor. */
    7575    public GAuthenticator() {
     
    115115    button_panel.add(cancel_button);
    116116
    117     content_pane.setLayout(new GridLayout(4,1));
     117    content_pane.setLayout(new GridLayout(4,1,0,2));
    118118    content_pane.setBorder(BorderFactory.createEmptyBorder(5,5,5,5));
    119119    content_pane.add(title_label);
     
    126126    dialog.show();
    127127    if(!authentication_cancelled) {
     128        // Store the authentication
     129        System.err.println("Storing the authentication for: " + getRequestingHost() + ":" + getRequestingPort());
     130        System.err.println("login@pass: " + username.getText() + "@" + new String(password.getPassword()));
     131        Gatherer.authentications.put(getRequestingHost() + ":" + getRequestingPort(), username.getText() + "@" + new String(password.getPassword()));
    128132        return new PasswordAuthentication(username.getText(), password.getPassword());
    129133    } else {
Note: See TracChangeset for help on using the changeset viewer.