Autopsy  4.5.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 
30  private double minimumEntropy;
31  private int minimumFileSize;
32  private boolean fileSizeMultipleEnforced;
33  private boolean slackFilesAllowed;
34 
38  EncryptionDetectionIngestJobSettings() {
39  this.minimumEntropy = EncryptionDetectionFileIngestModule.DEFAULT_CONFIG_MINIMUM_ENTROPY;
40  this.minimumFileSize = EncryptionDetectionFileIngestModule.DEFAULT_CONFIG_MINIMUM_FILE_SIZE;
41  this.fileSizeMultipleEnforced = EncryptionDetectionFileIngestModule.DEFAULT_CONFIG_FILE_SIZE_MULTIPLE_ENFORCED;
42  this.slackFilesAllowed = EncryptionDetectionFileIngestModule.DEFAULT_CONFIG_SLACK_FILES_ALLOWED;
43  }
44 
54  EncryptionDetectionIngestJobSettings(double minimumEntropy, int minimumFileSize, boolean fileSizeMultipleEnforced, boolean slackFilesAllowed) {
55  this.minimumEntropy = minimumEntropy;
56  this.minimumFileSize = minimumFileSize;
57  this.fileSizeMultipleEnforced = fileSizeMultipleEnforced;
58  this.slackFilesAllowed = slackFilesAllowed;
59  }
60 
61  @Override
62  public long getVersionNumber() {
63  return serialVersionUID;
64  }
65 
72  double getMinimumEntropy() {
73  return minimumEntropy;
74  }
75 
80  void setMinimumEntropy(double minimumEntropy) {
81  this.minimumEntropy = minimumEntropy;
82  }
83 
90  int getMinimumFileSize() {
91  return minimumFileSize;
92  }
93 
98  void setMinimumFileSize(int minimumFileSize) {
99  this.minimumFileSize = minimumFileSize;
100  }
101 
107  boolean isFileSizeMultipleEnforced() {
108  return fileSizeMultipleEnforced;
109  }
110 
114  void setFileSizeMultipleEnforced(boolean fileSizeMultipleEnforced) {
115  this.fileSizeMultipleEnforced = fileSizeMultipleEnforced;
116  }
117 
123  boolean isSlackFilesAllowed() {
124  return slackFilesAllowed;
125  }
126 
130  void setSlackFilesAllowed(boolean slackFilesAllowed) {
131  this.slackFilesAllowed = slackFilesAllowed;
132  }
133 }

Copyright © 2012-2016 Basis Technology. Generated on: Tue Feb 20 2018
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.