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

Quick Search    Search Deep

org.mitre.cvw
Class CVWAuthenticator  view CVWAuthenticator download CVWAuthenticator.java

java.lang.Object
  extended byjava.net.Authenticator
      extended byorg.mitre.cvw.CVWAuthenticator

public class CVWAuthenticator
extends java.net.Authenticator

This class will handle Basic password authentication over the network when required.

Version:
1.0

Field Summary
private  char[] password
           
private  java.lang.String username
           
 
Fields inherited from class java.net.Authenticator
 
Constructor Summary
CVWAuthenticator(java.lang.String username, char[] password)
           
 
Method Summary
protected  java.net.PasswordAuthentication getPasswordAuthentication()
          This method is called whenever a request for authentication is made.
 
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

username

private java.lang.String username

password

private char[] password
Constructor Detail

CVWAuthenticator

public CVWAuthenticator(java.lang.String username,
                        char[] password)
Method Detail

getPasswordAuthentication

protected java.net.PasswordAuthentication getPasswordAuthentication()
Description copied from class: java.net.Authenticator
This method is called whenever a request for authentication is made. It can call the other getXXX methods to determine the information relevant to this request. Subclasses should override this method, which returns null by default.