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 |
---|---|
boolean |
isEnabled()
Indicate whether this
VirusScanner is enabled or not. |
void |
performVirusScan(InputStream inputStream)
Perform virus scan and throw exception if a virus has been detected.
|
public boolean isEnabled()
VirusScanner
VirusScanner
is enabled or not.isEnabled
in interface VirusScanner
true
if enabled, false
otherwisepublic void performVirusScan(InputStream inputStream) throws VirusException
VirusScanner
performVirusScan
in interface VirusScanner
inputStream
- input stream to perform virus scan onVirusException
- if a virus has been detected by the scannerCopyright © 2019. All rights reserved.