Autopsy  4.5.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 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 
35 @ServiceProvider(service = IngestModuleFactory.class)
36 @Messages({
37  "EncryptionDetectionFileIngestModule.moduleName.text=Encryption Detection",
38  "EncryptionDetectionFileIngestModule.getDesc.text=Looks for files with the specified minimum entropy."
39 })
41 
42  @Override
43  public String getModuleDisplayName() {
44  return getModuleName();
45  }
46 
52  static String getModuleName() {
53  return NbBundle.getMessage(EncryptionDetectionFileIngestModule.class, "EncryptionDetectionFileIngestModule.moduleName.text");
54  }
55 
56  @Override
57  public String getModuleDescription() {
58  return NbBundle.getMessage(EncryptionDetectionFileIngestModule.class, "EncryptionDetectionFileIngestModule.getDesc.text");
59  }
60 
61  @Override
62  public String getModuleVersionNumber() {
63  return Version.getVersion();
64  }
65 
66  @Override
67  public boolean isFileIngestModuleFactory() {
68  return true;
69  }
70 
71  @Override
73  if (!(settings instanceof EncryptionDetectionIngestJobSettings)) {
74  throw new IllegalArgumentException("Expected settings argument to be an instance of EncryptionDetectionIngestJobSettings.");
75  }
76  return new EncryptionDetectionFileIngestModule((EncryptionDetectionIngestJobSettings) settings);
77  }
78 
79  @Override
80  public boolean hasGlobalSettingsPanel() {
81  return false;
82  }
83 
84  @Override
86  throw new UnsupportedOperationException();
87  }
88 
89  @Override
91  return new EncryptionDetectionIngestJobSettings();
92  }
93 
94  @Override
95  public boolean hasIngestJobSettingsPanel() {
96  return true;
97  }
98 
99  @Override
101  if (!(settings instanceof EncryptionDetectionIngestJobSettings)) {
102  throw new IllegalArgumentException("Expected settings argument to be an instance of EncryptionDetectionIngestJobSettings");
103  }
104  return new EncryptionDetectionIngestJobSettingsPanel((EncryptionDetectionIngestJobSettings) settings);
105  }
106 
107  @Override
109  return false;
110  }
111 
112  @Override
114  throw new UnsupportedOperationException();
115  }
116 }
DataSourceIngestModule createDataSourceIngestModule(IngestModuleIngestJobSettings settings)
IngestModuleIngestJobSettingsPanel getIngestJobSettingsPanel(IngestModuleIngestJobSettings settings)

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.