Autopsy  4.21.0
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  */
19 package com.basistech.df.cybertriage.autopsy.ctapi.json;
20 
21 import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
22 import com.fasterxml.jackson.annotation.JsonProperty;
23 import javax.annotation.Nonnull;
24 import javax.annotation.Nullable;
25 
30 @JsonIgnoreProperties(ignoreUnknown = true)
31 public class CTCloudBean {
32 
33  public static enum Status {
39  }
40 
41  @Nonnull
42  @JsonProperty("malware")
43  private MalwareResultBean malwareResult;
44 
45  @JsonProperty("correlation")
46  private CorrelationResultBean correlationResult;
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 
73  return malwareResult;
74  }
75 
76  public void setMalwareResult(MalwareResultBean malwareResult) {
77  this.malwareResult = malwareResult;
78  }
79 
81  return correlationResult;
82  }
83 
84  public void setCorrelationResult(CorrelationResultBean correlationResult) {
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 setMalwareResult(MalwareResultBean malwareResult)
void setCorrelationResult(CorrelationResultBean correlationResult)

Copyright © 2012-2022 Basis Technology. Generated on: Tue Feb 6 2024
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.