Sleuth Kit Java Bindings (JNI)  4.9.0
Java bindings for using The Sleuth Kit
HashHitInfo.java
Go to the documentation of this file.
1 /*
2  * Sleuth Kit Data Model
3  *
4  * Copyright 2013 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.datamodel;
20 
21 import java.util.ArrayList;
22 
28 public class HashHitInfo {
29 
30  private String hashMd5;
31  private String hashSha1;
32  private String hashSha2_256;
33  private ArrayList<String> names = new ArrayList<String>();
34  private ArrayList<String> comments = new ArrayList<String>();
35 
39  public HashHitInfo(String hashMd5, String hashSha1, String hashSha2_256) {
40  this.hashMd5 = hashMd5;
41  this.hashSha1 = hashSha1;
42  this.hashSha2_256 = hashSha2_256;
43  }
44 
50  public void addName(String name) {
51  names.add(name);
52  }
53 
59  public void addComment(String comment) {
60  comments.add(comment);
61  }
62 
63  public String getHashMd5() {
64  return hashMd5;
65  }
66 
67  public String getHashSha1() {
68  return hashSha1;
69  }
70 
71  public String getHashSha256() {
72  return hashSha2_256;
73  }
74 
75  public ArrayList<String> getNames() {
76  return names;
77  }
78 
79  public ArrayList<String> getComments() {
80  return comments;
81  }
82 }
ArrayList< String > getNames()
HashHitInfo(String hashMd5, String hashSha1, String hashSha2_256)
ArrayList< String > getComments()

Copyright © 2011-2020 Brian Carrier. (carrier -at- sleuthkit -dot- org)
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.