Package org.primefaces.virusscan
Interface VirusScanner
-
- All Known Implementing Classes:
ClamDaemonScanner,VirusTotalReportScanner
public interface VirusScannerService provider interface for virus scanning that might be used in file upload component for example when dealing with untrusted files.- See Also:
- fileUpload: virus scan
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisEnabled()Indicate whether thisVirusScanneris enabled or not.voidscan(UploadedFile file)Perform virus scan and throw exception if a virus has been detected.
-
-
-
Method Detail
-
isEnabled
boolean isEnabled()
Indicate whether thisVirusScanneris enabled or not.- Returns:
trueif enabled,falseotherwise
-
scan
void scan(UploadedFile file)
Perform virus scan and throw exception if a virus has been detected.- Parameters:
file- file to perform virus scan on
-
-