19 package org.sleuthkit.autopsy.modules.encryptiondetection;
26 final class EncryptionDetectionIngestJobSettings
implements IngestModuleIngestJobSettings {
28 private static final long serialVersionUID = 1L;
29 private static final double DEFAULT_CONFIG_MINIMUM_ENTROPY = 7.5;
30 private static final int DEFAULT_CONFIG_MINIMUM_FILE_SIZE = 5242880;
31 private static final boolean DEFAULT_CONFIG_FILE_SIZE_MULTIPLE_ENFORCED =
true;
32 private static final boolean DEFAULT_CONFIG_SLACK_FILES_ALLOWED =
true;
33 private double minimumEntropy;
34 private int minimumFileSize;
35 private boolean fileSizeMultipleEnforced;
36 private boolean slackFilesAllowed;
41 EncryptionDetectionIngestJobSettings() {
42 this.minimumEntropy = DEFAULT_CONFIG_MINIMUM_ENTROPY;
43 this.minimumFileSize = DEFAULT_CONFIG_MINIMUM_FILE_SIZE;
44 this.fileSizeMultipleEnforced = DEFAULT_CONFIG_FILE_SIZE_MULTIPLE_ENFORCED;
45 this.slackFilesAllowed = DEFAULT_CONFIG_SLACK_FILES_ALLOWED;
57 EncryptionDetectionIngestJobSettings(
double minimumEntropy,
int minimumFileSize,
boolean fileSizeMultipleEnforced,
boolean slackFilesAllowed) {
58 this.minimumEntropy = minimumEntropy;
59 this.minimumFileSize = minimumFileSize;
60 this.fileSizeMultipleEnforced = fileSizeMultipleEnforced;
61 this.slackFilesAllowed = slackFilesAllowed;
65 public long getVersionNumber() {
66 return serialVersionUID;
75 double getMinimumEntropy() {
76 return minimumEntropy;
83 void setMinimumEntropy(
double minimumEntropy) {
84 this.minimumEntropy = minimumEntropy;
93 int getMinimumFileSize() {
94 return minimumFileSize;
101 void setMinimumFileSize(
int minimumFileSize) {
102 this.minimumFileSize = minimumFileSize;
110 boolean isFileSizeMultipleEnforced() {
111 return fileSizeMultipleEnforced;
117 void setFileSizeMultipleEnforced(
boolean fileSizeMultipleEnforced) {
118 this.fileSizeMultipleEnforced = fileSizeMultipleEnforced;
126 boolean isSlackFilesAllowed() {
127 return slackFilesAllowed;
133 void setSlackFilesAllowed(
boolean slackFilesAllowed) {
134 this.slackFilesAllowed = slackFilesAllowed;