public class People
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static java.util.logging.Logger |
logger
Logger instance
|
Constructor and Description |
---|
People(java.sql.Connection conn)
Create a new instance with a database connection.
|
Modifier and Type | Method and Description |
---|---|
User |
getUser(LoginForm form)
Attempts to load a User from the database.
|
User |
getUser(java.lang.String hashpass)
Attempts to load a User from the database.
|
public People(java.sql.Connection conn)
conn
- The connectionpublic User getUser(LoginForm form) throws java.sql.SQLException
form
- Initialized form instancejava.sql.SQLException
- Could not complete querypublic User getUser(java.lang.String hashpass) throws java.sql.SQLException
hashpass
- SHA-1 digested passwordjava.sql.SQLException
- Could not complete queryCopyright \ (C) Arizona Board of Regents on behalf of the \ Planetary Image Research Laboratory, Lunar and \ Planetary Laboratory at the University of Arizona