com.kanishka.virustotalv2.VirusTotalConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of VirustotalPublicV2.0 Show documentation
Show all versions of VirustotalPublicV2.0 Show documentation
Please refer to
https://github.com/kdkanishka/Virustotal-Public-API-V2.0-Client
The newest version!
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.kanishka.virustotalv2;
/**
* Configuration singleton which allows to maintain configurations
* @author [email protected]
*/
public final class VirusTotalConfig {
private String virusTotalAPIKey;
private static VirusTotalConfig configInstance = null;
private VirusTotalConfig() {
virusTotalAPIKey = "";
}
public static VirusTotalConfig getConfigInstance() {
if (configInstance == null) {
synchronized (VirusTotalConfig.class) {
if (configInstance == null) {
configInstance = new VirusTotalConfig();
}
}
}
return configInstance;
}
public String getVirusTotalAPIKey() {
return virusTotalAPIKey;
}
public void setVirusTotalAPIKey(String virusTotalAPIKey) {
this.virusTotalAPIKey = virusTotalAPIKey;
}
}