Autopsy 4.22.1
Graphical digital forensics platform for The Sleuth Kit and other tools.
AutoIngestDataSource.java
Go to the documentation of this file.
1/*
2 * Autopsy Forensic Browser
3 *
4 * Copyright 2011-2019 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 */
19package org.sleuthkit.autopsy.datasourceprocessors;
20
21import java.nio.file.Path;
22import java.util.ArrayList;
23import java.util.List;
24import javax.annotation.concurrent.ThreadSafe;
25import org.sleuthkit.autopsy.corecomponentinterfaces.DataSourceProcessorCallback.DataSourceProcessorResult;
26import org.sleuthkit.datamodel.Content;
27
28@ThreadSafe
30
31 private final String deviceId;
32 private final Path path;
33 private final String password;
35 private List<String> errorMessages;
36 private List<Content> content;
37
38
39 public AutoIngestDataSource(String deviceId, Path path, String password) {
40 this.deviceId = deviceId;
41 this.path = path;
42 this.password = password;
43 }
44
45 public AutoIngestDataSource(String deviceId, Path path) {
46 this(deviceId, path, null);
47 }
48
49 public String getDeviceId() {
50 return deviceId;
51 }
52
53 public Path getPath() {
54 return this.path;
55 }
56
60 public String getPassword() {
61 return password;
62 }
63
64 public synchronized void setDataSourceProcessorOutput(DataSourceProcessorResult result, List<String> errorMessages, List<Content> content) {
65 this.resultCode = result;
66 this.errorMessages = new ArrayList<>(errorMessages);
67 this.content = new ArrayList<>(content);
68 }
69
73
74 public synchronized List<String> getDataSourceProcessorErrorMessages() {
75 return new ArrayList<>(errorMessages);
76 }
77
78 public synchronized List<Content> getContent() {
79 return new ArrayList<>(content);
80 }
81
82}
AutoIngestDataSource(String deviceId, Path path, String password)
synchronized DataSourceProcessorResult getResultDataSourceProcessorResultCode()
synchronized void setDataSourceProcessorOutput(DataSourceProcessorResult result, List< String > errorMessages, List< Content > content)

Copyright © 2012-2024 Sleuth Kit Labs. Generated on:
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.