Autopsy  4.14.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
EncryptionDetectionModuleFactory.java
Go to the documentation of this file.
1 /*
2  * Autopsy Forensic Browser
3  *
4  * Copyright 2017-2018 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 
21 import org.openide.util.NbBundle;
22 import org.openide.util.NbBundle.Messages;
23 import org.openide.util.lookup.ServiceProvider;
31 
36 @ServiceProvider(service = IngestModuleFactory.class)
37 @Messages({
38  "EncryptionDetectionFileIngestModule.moduleName.text=Encryption Detection",
39  "EncryptionDetectionFileIngestModule.getDesc.text=Looks for files with the specified minimum entropy."
40 })
42 
43  @Override
44  public String getModuleDisplayName() {
45  return getModuleName();
46  }
47 
53  static String getModuleName() {
54  return NbBundle.getMessage(EncryptionDetectionFileIngestModule.class, "EncryptionDetectionFileIngestModule.moduleName.text");
55  }
56 
57  @Override
58  public String getModuleDescription() {
59  return NbBundle.getMessage(EncryptionDetectionFileIngestModule.class, "EncryptionDetectionFileIngestModule.getDesc.text");
60  }
61 
62  @Override
63  public String getModuleVersionNumber() {
64  return Version.getVersion();
65  }
66 
67  @Override
68  public boolean isFileIngestModuleFactory() {
69  return true;
70  }
71 
72  @Override
74  if (!(settings instanceof EncryptionDetectionIngestJobSettings)) {
75  throw new IllegalArgumentException("Expected settings argument to be an instance of EncryptionDetectionIngestJobSettings.");
76  }
77  return new EncryptionDetectionFileIngestModule((EncryptionDetectionIngestJobSettings) settings);
78  }
79 
80  @Override
81  public boolean hasGlobalSettingsPanel() {
82  return false;
83  }
84 
85  @Override
87  throw new UnsupportedOperationException();
88  }
89 
90  @Override
92  return new EncryptionDetectionIngestJobSettings();
93  }
94 
95  @Override
96  public boolean hasIngestJobSettingsPanel() {
97  return true;
98  }
99 
100  @Override
102  if (!(settings instanceof EncryptionDetectionIngestJobSettings)) {
103  throw new IllegalArgumentException("Expected settings argument to be an instance of EncryptionDetectionIngestJobSettings");
104  }
105  return new EncryptionDetectionIngestJobSettingsPanel((EncryptionDetectionIngestJobSettings) settings);
106  }
107 
108  @Override
110  return true;
111  }
112 
113  @Override
115  if (!(settings instanceof EncryptionDetectionIngestJobSettings)) {
116  throw new IllegalArgumentException("Expected settings argument to be an instance of EncryptionDetectionIngestJobSettings.");
117  }
118  return new EncryptionDetectionDataSourceIngestModule((EncryptionDetectionIngestJobSettings) settings);
119  }
120 }
DataSourceIngestModule createDataSourceIngestModule(IngestModuleIngestJobSettings settings)
IngestModuleIngestJobSettingsPanel getIngestJobSettingsPanel(IngestModuleIngestJobSettings settings)

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