public class Headless_Authenticator
extends java.lang.Object
The user's HiWeb password is hashed before comparing with the password as stored in HiCat. Nevertheless, this class may not be 100% secure.
| Modifier and Type | Class and Description |
|---|---|
static class |
Headless_Authenticator.Authentication_Exception
An exception for reporting problems with HiWeb authentication.
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ID
Class identification name with source code version and date.
|
| Constructor and Description |
|---|
Headless_Authenticator(PIRL.Database.Database database) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
authenticate_user(java.lang.String username,
java.lang.String password) |
public static final java.lang.String ID
public Headless_Authenticator(PIRL.Database.Database database)
throws java.security.NoSuchAlgorithmException
java.security.NoSuchAlgorithmException - if the SHA-1 digest algorithm is not
available.public boolean authenticate_user(java.lang.String username,
java.lang.String password)
throws Headless_Authenticator.Authentication_Exception
username - the user's HiWeb username.password - the user's HiWeb password, which is to be hashed.Headless_Authenticator.Authentication_Exception - if there is a problem authenticating
the user; the original cause of this exception is chained along.Copyright (C) Arizona Board of Regents on behalf of the Planetary Image Research Laboratory, Lunar and Planetary Laboratory at the University of Arizona