Autopsy  4.18.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
org.sleuthkit.autopsy.modules.yara.rules.RuleSetManager Class Reference

Public Member Functions

synchronized RuleSet createRuleSet (String name) throws RuleSetException
 
synchronized void deleteRuleSet (RuleSet ruleSet) throws RuleSetException
 
synchronized List< RuleSetgetRuleSetList ()
 
synchronized boolean isRuleSetExists (String name)
 
void removePropertyChangeListener (PropertyChangeListener listener)
 

Static Public Member Functions

static void addPropertyChangeListener (PropertyChangeListener listener)
 
static synchronized RuleSetManager getInstance ()
 

Static Public Attributes

static final String RULE_SET_ADDED = "YARARuleSetAdded"
 
static final String RULE_SET_DELETED = "YARARuleSetDeleted"
 

Private Member Functions

 RuleSetManager ()
 
boolean deleteDirectory (File directoryToBeDeleted)
 
PropertyChangeSupport getChangeSupport ()
 
Path getRuleSetPath ()
 

Private Attributes

final PropertyChangeSupport changeSupport
 

Static Private Attributes

static final String BASE_FOLDER = "yara"
 
static RuleSetManager instance
 
static final String RULE_SET_FOLDER = "ruleSets"
 

Detailed Description

Yara Rule Set Manager. Manages the creation, deletion of yara rule sets.

Definition at line 35 of file RuleSetManager.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.modules.yara.rules.RuleSetManager.RuleSetManager ( )
private

Private constructor for this singleton.

Definition at line 53 of file RuleSetManager.java.

Referenced by org.sleuthkit.autopsy.modules.yara.rules.RuleSetManager.getInstance().

Member Function Documentation

static void org.sleuthkit.autopsy.modules.yara.rules.RuleSetManager.addPropertyChangeListener ( PropertyChangeListener  listener)
static
synchronized RuleSet org.sleuthkit.autopsy.modules.yara.rules.RuleSetManager.createRuleSet ( String  name) throws RuleSetException
boolean org.sleuthkit.autopsy.modules.yara.rules.RuleSetManager.deleteDirectory ( File  directoryToBeDeleted)
private

Recursively delete the given directory and its children.

Parameters
directoryToBeDeleted
Returns
True if the delete was successful.

Definition at line 214 of file RuleSetManager.java.

Referenced by org.sleuthkit.autopsy.modules.yara.rules.RuleSetManager.deleteRuleSet().

synchronized void org.sleuthkit.autopsy.modules.yara.rules.RuleSetManager.deleteRuleSet ( RuleSet  ruleSet) throws RuleSetException
PropertyChangeSupport org.sleuthkit.autopsy.modules.yara.rules.RuleSetManager.getChangeSupport ( )
private
static synchronized RuleSetManager org.sleuthkit.autopsy.modules.yara.rules.RuleSetManager.getInstance ( )
static
synchronized List<RuleSet> org.sleuthkit.autopsy.modules.yara.rules.RuleSetManager.getRuleSetList ( )

Returns a list of all of the existing yara rule sets.

Returns

Definition at line 154 of file RuleSetManager.java.

References org.sleuthkit.autopsy.modules.yara.rules.RuleSetManager.getRuleSetPath().

Referenced by org.sleuthkit.autopsy.modules.yara.ui.YaraIngestSettingsPanel.YaraIngestSettingsPanel().

Path org.sleuthkit.autopsy.modules.yara.rules.RuleSetManager.getRuleSetPath ( )
private
synchronized boolean org.sleuthkit.autopsy.modules.yara.rules.RuleSetManager.isRuleSetExists ( String  name)

Check if a yara rule set of the given name exists.

Parameters
nameYara rule set name
Returns
True if the rule set exist.

Definition at line 174 of file RuleSetManager.java.

References org.sleuthkit.autopsy.modules.yara.rules.RuleSetManager.getRuleSetPath().

Referenced by org.sleuthkit.autopsy.modules.yara.rules.RuleSetManager.createRuleSet(), and org.sleuthkit.autopsy.modules.yara.rules.RuleSetManager.deleteRuleSet().

void org.sleuthkit.autopsy.modules.yara.rules.RuleSetManager.removePropertyChangeListener ( PropertyChangeListener  listener)

Remove a property change listener from this manager.

Parameters
listenerListener to be added.

Definition at line 84 of file RuleSetManager.java.

References org.sleuthkit.autopsy.modules.yara.rules.RuleSetManager.getChangeSupport(), and org.sleuthkit.autopsy.modules.yara.rules.RuleSetManager.getInstance().

Member Data Documentation

final String org.sleuthkit.autopsy.modules.yara.rules.RuleSetManager.BASE_FOLDER = "yara"
staticprivate
final PropertyChangeSupport org.sleuthkit.autopsy.modules.yara.rules.RuleSetManager.changeSupport
private
RuleSetManager org.sleuthkit.autopsy.modules.yara.rules.RuleSetManager.instance
staticprivate
final String org.sleuthkit.autopsy.modules.yara.rules.RuleSetManager.RULE_SET_ADDED = "YARARuleSetAdded"
static

Rule Set Property names.

Definition at line 43 of file RuleSetManager.java.

Referenced by org.sleuthkit.autopsy.modules.yara.ui.YaraIngestSettingsPanel.YaraIngestSettingsPanel().

final String org.sleuthkit.autopsy.modules.yara.rules.RuleSetManager.RULE_SET_DELETED = "YARARuleSetDeleted"
static
final String org.sleuthkit.autopsy.modules.yara.rules.RuleSetManager.RULE_SET_FOLDER = "ruleSets"
staticprivate

The documentation for this class was generated from the following file:

Copyright © 2012-2021 Basis Technology. Generated on: Thu Jul 8 2021
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.