Class EicarTestFileMalwareScannerPlugin
- java.lang.Object
-
- de.xima.fc.e2e.containerplugin.plugin.EicarTestFileMalwareScannerPlugin
-
- All Implemented Interfaces:
INameProviding
,ITransferable
,INamedUiElement
,IFCPlugin
,IPluginMalwareScanner
,Serializable
public class EicarTestFileMalwareScannerPlugin extends Object implements IPluginMalwareScanner
A sample implementation for a malware scanner plugin. Such a plugin can be used to add support for a custom virus scanner program.This plugin detects the EICAR virus test file: https://www.eicar.org/download-anti-malware-testfile/
- Author:
- unspecified
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface de.xima.fc.plugin.interfaces.IFCPlugin
CONFIG_FILENAME
-
Fields inherited from interface de.xima.fc.interfaces.INamedUiElement
ATTR_DISPLAY_NAME
-
Fields inherited from interface de.xima.fc.entities.interfaces.INameProviding
ATTR_NAME, COL_NAME
-
-
Constructor Summary
Constructors Constructor Description EicarTestFileMalwareScannerPlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
Getter for the name of this plugin.Iterable<? extends IMalwareScanner>
getScanners()
Gets the malware scanner provided by this plugin.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.xima.fc.plugin.interfaces.IFCPlugin
getDescription, getDescription, getDisplayName, initialize, initPlugin, install, shutdown, shutdown, uninstall
-
-
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:IFCPlugin
Getter for the name of this plugin. This name may appear on the user interface.- Specified by:
getName
in interfaceIFCPlugin
- Specified by:
getName
in interfaceINameProviding
- Returns:
- The name of this plugin. This is the technical name not shown in the UI.
-
getScanners
public Iterable<? extends IMalwareScanner> getScanners()
Description copied from interface:IPluginMalwareScanner
Gets the malware scanner provided by this plugin. When multiple scanners are present, all scanners are applied to a file in a non-specified but deterministic order. A file is considered unsafe when one or more scanners report a potential malware signature.- Specified by:
getScanners
in interfaceIPluginMalwareScanner
- Returns:
- A list of scanners provided by this plugin that can be used for scanning.
- See Also:
IPluginMalwareScanner.getScanners()
-
-