org.eclipse.jgit.awtui
Class AwtAuthenticator

java.lang.Object
  extended by java.net.Authenticator
      extended by org.eclipse.jgit.awtui.AwtAuthenticator

public class AwtAuthenticator
extends java.net.Authenticator

Basic network prompt for username/password when using AWT.


Nested Class Summary
static class AwtAuthenticator.CachedAuthentication
          Authentication data to remember and reuse.
 
Nested classes/interfaces inherited from class java.net.Authenticator
java.net.Authenticator.RequestorType
 
Constructor Summary
AwtAuthenticator()
           
 
Method Summary
static void add(AwtAuthenticator.CachedAuthentication ca)
          Add a cached authentication for future use.
protected  java.net.PasswordAuthentication getPasswordAuthentication()
           
static void install()
          Install this authenticator implementation into the JVM.
 
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
 

Constructor Detail

AwtAuthenticator

public AwtAuthenticator()
Method Detail

install

public static void install()
Install this authenticator implementation into the JVM.


add

public static void add(AwtAuthenticator.CachedAuthentication ca)
Add a cached authentication for future use.

Parameters:
ca - the information we should remember.

getPasswordAuthentication

protected java.net.PasswordAuthentication getPasswordAuthentication()
Overrides:
getPasswordAuthentication in class java.net.Authenticator