Package | Description |
---|---|
be.ac.ulb.infof307.g02.database | |
be.ac.ulb.infof307.g02.utils |
Modifier and Type | Field and Description |
---|---|
private DatabaseConnection |
ObjectDB.databaseConnection |
private static DatabaseConnection |
DatabaseConnectionSingleton.databaseConnection |
Modifier and Type | Method and Description |
---|---|
protected DatabaseConnection |
ObjectDB.getDatabaseConnection() |
static DatabaseConnection |
DatabaseConnectionSingleton.getDatabaseConnection()
Returns the database connection, instantiating it if doesn't exist yet.
|
Constructor and Description |
---|
GroceryListDB(DatabaseConnection databaseConnection)
Class constructor that stores the given database connection for later use.
|
KeyDB(DatabaseConnection databaseConnection)
Class constructor that stores the given database connection for later use.
|
KeyStorer(DatabaseConnection databaseConnection)
Loads the keystore file and does setup using the database connection.
|
ObjectDB(DatabaseConnection databaseConnection)
Class constructor that stores the given database connection for later use.
|
ProductDB(DatabaseConnection databaseConnection)
Class constructor that stores the given database connection for later use.
|
RecipeDB(DatabaseConnection databaseConnection)
Class constructor that stores the given database connection for later use.
|
ShopDB(DatabaseConnection databaseConnection)
Class constructor that stores the given database connection for later use.
|
UserDB(DatabaseConnection databaseConnection)
Class constructor that stores the given database connection for later use.
|
Modifier and Type | Method and Description |
---|---|
static void |
CryptoSingleton.setupCryptoForUser(User user,
DatabaseConnection databaseConnection)
Creates a new Crypto instance when user logs in, which fetches all the required key information
|
static void |
CryptoSingleton.updateUserKeys(User oldUser,
User updatedUser,
DatabaseConnection databaseConnection)
Regenerates the user's keys, stores the new information and creates a new Crypto instance
with the new keys.
|
Constructor and Description |
---|
Crypto(User user,
DatabaseConnection databaseConnection)
Initializes cryptography for the given user, fetching their keys from the database and the keystore file.
|