
com.threatconnect.sdk.server.entity.File Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-sdk Show documentation
Show all versions of java-sdk Show documentation
The ThreatConnect Java SDK. Used to communicate with teh ThreatConnect Threat Intelligence Platform
The newest version!
package com.threatconnect.sdk.server.entity;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import javax.xml.bind.annotation.*;
import java.util.Date;
/**
*
* @author eric
*/
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
@XmlRootElement(name = "File")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlSeeAlso({FileOccurrence.class})
public class File extends Indicator
{
@XmlElement(name = "md5", required = false)
private String md5;
@XmlElement(name = "sha1", required = false)
private String sha1;
@XmlElement(name = "sha256", required = false)
private String sha256;
@XmlElement(name = "size", required = false)
private Integer size;
public File()
{
super();
}
public File(Integer id, Owner owner, String ownerName, String type, Date dateAdded, Date lastModified, Double rating, Double confidence, Double threatAssessRating, Double threatAssessConfidence, String webLink, String source, String description, String summary, String md5, String sha1, String sha256, Integer size)
{
super(id, owner, ownerName, type, dateAdded, lastModified, rating, confidence, threatAssessRating, threatAssessConfidence, webLink, source, description, summary);
this.md5 = md5;
this.sha1 = sha1;
this.sha256 = sha256;
this.size = size;
}
public String getMd5()
{
return md5;
}
public void setMd5(String md5)
{
this.md5 = md5;
}
public String getSha1()
{
return sha1;
}
public void setSha1(String sha1)
{
this.sha1 = sha1;
}
public String getSha256()
{
return sha256;
}
public void setSha256(String sha256)
{
this.sha256 = sha256;
}
public Integer getSize()
{
return size;
}
public void setSize(Integer size)
{
this.size = size;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy