Interface IVirusScanService

All Known Implementing Classes:
ClamAVVirusScanService, FluentVirusScanService, SSEVirusScanService

public interface IVirusScanService
Provides an interface for scanning file attachments.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    isFileVirusFree(String filename, byte[] fileData)
    Scan the provided file and return true if virus free.
  • Method Details

    • isFileVirusFree

      boolean isFileVirusFree(String filename, byte[] fileData) throws VirusScanException
      Scan the provided file and return true if virus free.
      Parameters:
      filename - the name of the file to scan
      fileData - the file data
      Returns:
      true if the file is virus free
      Throws:
      VirusScanException - if there occurs a virus scan service configuration error