Autopsy 4.22.1
Graphical digital forensics platform for The Sleuth Kit and other tools.
CTCloudBean.java
Go to the documentation of this file.
1/*
2 * Autopsy Forensic Browser
3 *
4 * Copyright 2023 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 com.basistech.df.cybertriage.autopsy.ctapi.json;
20
21import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
22import com.fasterxml.jackson.annotation.JsonProperty;
23import javax.annotation.Nonnull;
24import javax.annotation.Nullable;
25
30@JsonIgnoreProperties(ignoreUnknown = true)
31public class CTCloudBean {
32
40
41 @Nonnull
42 @JsonProperty("malware")
44
45 @JsonProperty("correlation")
47
48 @Nonnull
49 @JsonProperty("md5_hash")
50 private String md5HashValue;
51
52 @Nullable
53 @JsonProperty("sha1_hash")
54 private String sha1HashValue;
55
56 public String getMd5HashValue() {
57 return md5HashValue;
58 }
59
60 public String getSha1HashValue() {
61 return sha1HashValue;
62 }
63
64 public void setMd5HashValue(String md5HashValue) {
65 this.md5HashValue = md5HashValue;
66 }
67
68 public void setSha1HashValue(String sha1HashValue) {
69 this.sha1HashValue = sha1HashValue;
70 }
71
75
77 this.malwareResult = malwareResult;
78 }
79
83
85 this.correlationResult = correlationResult;
86 }
87
88 @Override
89 public String toString() {
90 return "CTCloudBean{"
91 + "status=" + malwareResult.getStatus()
92 + ", malwareDescription=" + malwareResult.getMalwareDescription()
93 + ", score=" + malwareResult.getCTScore()
94 + ", md5HashValue=" + md5HashValue
95 + ", sha1HashValue=" + sha1HashValue
96 + ", firstSeen=" + malwareResult.getFirstAnalyzedDate()
97 + ", lastSeen=" + malwareResult.getLastAnalyzedDate()
98 + ", statusDescription=" + malwareResult.getStatusDescription()
99 + ", metadata=" + malwareResult.getMetadata()
100 + '}';
101 }
102
103}
void setCorrelationResult(CorrelationResultBean correlationResult)
void setMalwareResult(MalwareResultBean malwareResult)

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