Autopsy  4.19.3
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  "EncryptionDetectionFileIngestModule.artifactComment.password=Password protection detected.",
41 })
42 
44 
45  public static final String PASSWORD_PROTECT_MESSAGE = Bundle.EncryptionDetectionFileIngestModule_artifactComment_password();
46 
47  @Override
48  public String getModuleDisplayName() {
49  return getModuleName();
50  }
51 
57  static String getModuleName() {
58  return NbBundle.getMessage(EncryptionDetectionFileIngestModule.class, "EncryptionDetectionFileIngestModule.moduleName.text");
59  }
60 
61  @Override
62  public String getModuleDescription() {
63  return NbBundle.getMessage(EncryptionDetectionFileIngestModule.class, "EncryptionDetectionFileIngestModule.getDesc.text");
64  }
65 
66  @Override
67  public String getModuleVersionNumber() {
68  return Version.getVersion();
69  }
70 
71  @Override
72  public boolean isFileIngestModuleFactory() {
73  return true;
74  }
75 
76  @Override
78  if (!(settings instanceof EncryptionDetectionIngestJobSettings)) {
79  throw new IllegalArgumentException("Expected settings argument to be an instance of EncryptionDetectionIngestJobSettings.");
80  }
81  return new EncryptionDetectionFileIngestModule((EncryptionDetectionIngestJobSettings) settings);
82  }
83 
84  @Override
85  public boolean hasGlobalSettingsPanel() {
86  return false;
87  }
88 
89  @Override
91  throw new UnsupportedOperationException();
92  }
93 
94  @Override
96  return new EncryptionDetectionIngestJobSettings();
97  }
98 
99  @Override
100  public boolean hasIngestJobSettingsPanel() {
101  return true;
102  }
103 
104  @Override
106  if (!(settings instanceof EncryptionDetectionIngestJobSettings)) {
107  throw new IllegalArgumentException("Expected settings argument to be an instance of EncryptionDetectionIngestJobSettings");
108  }
109  return new EncryptionDetectionIngestJobSettingsPanel((EncryptionDetectionIngestJobSettings) settings);
110  }
111 
112  @Override
114  return true;
115  }
116 
117  @Override
119  if (!(settings instanceof EncryptionDetectionIngestJobSettings)) {
120  throw new IllegalArgumentException("Expected settings argument to be an instance of EncryptionDetectionIngestJobSettings.");
121  }
122  return new EncryptionDetectionDataSourceIngestModule((EncryptionDetectionIngestJobSettings) settings);
123  }
124 }
DataSourceIngestModule createDataSourceIngestModule(IngestModuleIngestJobSettings settings)
IngestModuleIngestJobSettingsPanel getIngestJobSettingsPanel(IngestModuleIngestJobSettings settings)

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