public class VirusTotalVirusScanner extends Object implements VirusScanner
VirusScanner provider bundled with PrimeFaces.
 The implementation makes use of the VirusTotal Public API v2.0.
 It requires CONTEXT_PARAM_KEY to be specified.| Constructor and Description | 
|---|
| VirusTotalVirusScanner() | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | checkResponseCode(int code) | 
| boolean | isEnabled()Indicate whether this  VirusScanneris enabled or not. | 
| void | performVirusScan(InputStream inputStream)Perform virus scan and throw exception if a virus has been detected. | 
public boolean isEnabled()
VirusScannerVirusScanner is enabled or not.isEnabled in interface VirusScannertrue if enabled, false otherwisepublic void performVirusScan(InputStream inputStream) throws VirusException
VirusScannerperformVirusScan in interface VirusScannerinputStream - input stream to perform virus scan onVirusException - if a virus has been detected by the scannerprotected void checkResponseCode(int code)
Copyright © 2020. All rights reserved.