All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.kanishka.virustotalv2.VirusTotalConfig Maven / Gradle / Ivy

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;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy