@ThreadSafe public class DatabaseProperties extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
LAST_CHECKED
The properties file key for the last checked field - used to store the
last check time of the Modified NVD CVE xml file.
|
static String |
LAST_CPE_UPDATE
The key for the last time the CPE data was updated.
|
static String |
LAST_UPDATED
The properties file key for the last updated field - used to store the
last updated time of the Modified NVD CVE xml file.
|
static String |
LAST_UPDATED_BASE
Stores the last updated time for each of the NVD CVE files.
|
static String |
MODIFIED
Modified key word, used as a key to store information about the modified
file (i.e.
|
static String |
VERSION
The key for the database schema version.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
getMetaData()
Returns a map of the meta data from the database properties.
|
Properties |
getProperties()
Returns the collection of Database Properties as a properties collection.
|
String |
getProperty(String key)
Returns the property value for the given key.
|
String |
getProperty(String key,
String defaultValue)
Returns the property value for the given key.
|
boolean |
isEmpty()
Returns whether or not any properties are set.
|
void |
save(NvdCveInfo updatedValue)
Saves the last updated information to the properties file.
|
void |
save(String key,
String value)
Saves the key value pair to the properties store.
|
public static final String MODIFIED
public static final String LAST_CHECKED
public static final String LAST_UPDATED
public static final String LAST_UPDATED_BASE
public static final String LAST_CPE_UPDATE
public static final String VERSION
public boolean isEmpty()
public void save(NvdCveInfo updatedValue) throws UpdateException
updatedValue - the updated NVD CVE entryUpdateException - is thrown if there is an update exceptionpublic void save(String key, String value) throws UpdateException
key - the property keyvalue - the property valueUpdateException - is thrown if there is an update exceptionpublic String getProperty(String key)
key - the property keypublic String getProperty(String key, String defaultValue)
key - the property keydefaultValue - the default valuepublic Properties getProperties()
Copyright © 2012–2020 OWASP. All rights reserved.