Autopsy  4.20.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
EncryptionDetectionIngestJobSettings.java
Go to the documentation of this file.
1 /*
2  * Autopsy Forensic Browser
3  *
4  * Copyright 2017 Basis Technology Corp.
5  * Contact: carrier <at> sleuthkit <dot> org
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  */
19 package org.sleuthkit.autopsy.modules.encryptiondetection;
20 
22 
26 final class EncryptionDetectionIngestJobSettings implements IngestModuleIngestJobSettings {
27 
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; // 5MB;
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;
37 
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;
46  }
47 
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;
62  }
63 
64  @Override
65  public long getVersionNumber() {
66  return serialVersionUID;
67  }
68 
75  double getMinimumEntropy() {
76  return minimumEntropy;
77  }
78 
83  void setMinimumEntropy(double minimumEntropy) {
84  this.minimumEntropy = minimumEntropy;
85  }
86 
93  int getMinimumFileSize() {
94  return minimumFileSize;
95  }
96 
101  void setMinimumFileSize(int minimumFileSize) {
102  this.minimumFileSize = minimumFileSize;
103  }
104 
110  boolean isFileSizeMultipleEnforced() {
111  return fileSizeMultipleEnforced;
112  }
113 
117  void setFileSizeMultipleEnforced(boolean fileSizeMultipleEnforced) {
118  this.fileSizeMultipleEnforced = fileSizeMultipleEnforced;
119  }
120 
126  boolean isSlackFilesAllowed() {
127  return slackFilesAllowed;
128  }
129 
133  void setSlackFilesAllowed(boolean slackFilesAllowed) {
134  this.slackFilesAllowed = slackFilesAllowed;
135  }
136 }

Copyright © 2012-2022 Basis Technology. Generated on: Tue Aug 1 2023
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.