HiRISE

HiRISE.HiPlan.HiWeb
Class Authenticator

java.lang.Object
  extended by HiRISE.HiPlan.HiWeb.Authenticator

public class Authenticator
extends Object

A mechanism for authenticating a HiWeb user. This class pops a HiWeb login dialog if need be. Actual authentication is accomplished via an instance of a Headless_Authenticator.

Version:
1.5
Author:
Christian Schaller - UA/PIRL

Field Summary
static String ID
          Class identification name with source code version and date.
 
Constructor Summary
Authenticator(Database database)
           
 
Method Summary
 boolean authenticate_user(String username, String password)
           
 String username()
          Gets the current value of the username text field.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID

public static final String ID
Class identification name with source code version and date.

See Also:
Constant Field Values
Constructor Detail

Authenticator

public Authenticator(Database database)
              throws NoSuchAlgorithmException
Throws:
NoSuchAlgorithmException - if the SHA-1 digest algorithm is not available.
Method Detail

authenticate_user

public boolean authenticate_user(String username,
                                 String password)

username

public String username()
Gets the current value of the username text field. There is no assumption about the ligitimacy of the value; it may or may not have been authenticated.

Returns:
the current username.

HiRISE

Copyright (C) Arizona Board of Regents on behalf of the Planetary Image Research Laboratory, Lunar and Planetary Laboratory at the University of Arizona