org.bounce.net
Class DefaultAuthenticator

java.lang.Object
  extended by java.net.Authenticator
      extended by org.bounce.net.DefaultAuthenticator

public class DefaultAuthenticator
extends Authenticator

An authenticator which prompts for username and password.

Version:
$Revision: 1.5 $, $Date: 2008/01/28 21:28:37 $
Author:
Edwin Dankert

Nested Class Summary
 
Nested classes/interfaces inherited from class java.net.Authenticator
Authenticator.RequestorType
 
Field Summary
protected  String CANCEL_BUTTON
           
protected  String DESCRIPTION
           
protected  String HOST
           
protected  String OK_BUTTON
           
protected  String PASSWORD
           
protected  String REALM
           
protected static Dimension SIZE
           
protected  String TITLE
           
protected  String USERNAME
           
 
Constructor Summary
DefaultAuthenticator(JFrame parent)
          Constructor for the authenticator, setting the parent frame.
 
Method Summary
protected  PasswordAuthentication getPasswordAuthentication()
          Return the PasswordAuthentication object.
 
Methods inherited from class java.net.Authenticator
getRequestingHost, getRequestingPort, getRequestingPrompt, getRequestingProtocol, getRequestingScheme, getRequestingSite, getRequestingURL, getRequestorType, requestPasswordAuthentication, requestPasswordAuthentication, requestPasswordAuthentication, setDefault
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SIZE

protected static Dimension SIZE

TITLE

protected String TITLE

DESCRIPTION

protected String DESCRIPTION

USERNAME

protected String USERNAME

PASSWORD

protected String PASSWORD

HOST

protected String HOST

REALM

protected String REALM

OK_BUTTON

protected String OK_BUTTON

CANCEL_BUTTON

protected String CANCEL_BUTTON
Constructor Detail

DefaultAuthenticator

public DefaultAuthenticator(JFrame parent)
Constructor for the authenticator, setting the parent frame.

Parameters:
parent - the parent frame.
Method Detail

getPasswordAuthentication

protected PasswordAuthentication getPasswordAuthentication()
Return the PasswordAuthentication object.

Overrides:
getPasswordAuthentication in class Authenticator
Returns:
the PasswordAuthentication object.


Copyright © 2002-2011 Edwin Dankert. All Rights Reserved.