Enum EMalwareScanOutcome

java.lang.Object
java.lang.Enum<EMalwareScanOutcome>
de.xima.fc.mdl.enums.EMalwareScanOutcome
All Implemented Interfaces:
Serializable, Comparable<EMalwareScanOutcome>

public enum EMalwareScanOutcome extends Enum<EMalwareScanOutcome>
Enumerates the possible outcomes of a malware scan.
Since:
7.0.13
Author:
XIMA MEDIA GmbH
  • Enum Constant Details

    • NO_SCANNER_AVAILABLE

      public static final EMalwareScanOutcome NO_SCANNER_AVAILABLE
      No scan could be performed because no scanner is available.
    • POTENTIAL_MALWARE_SIGNATURE_FOUND

      public static final EMalwareScanOutcome POTENTIAL_MALWARE_SIGNATURE_FOUND
      At least one potential malware signature was found. It may be a false positive, but the file or data should be considered unsafe.
    • NO_MALWARE_DETECTED

      public static final EMalwareScanOutcome NO_MALWARE_DETECTED
      No malware signatures were detected despite best efforts. Note that false negatives are possible, but to our best knowledge, the file or data is safe.
    • SCAN_FAILURE

      public static final EMalwareScanOutcome SCAN_FAILURE
      Scanning failed due to an unhandled exception.
    • INVALID_FILE_EXTENSION

      public static final EMalwareScanOutcome INVALID_FILE_EXTENSION
      Content type verification failed (file content doesn't match file extension).
  • Method Details

    • values

      public static EMalwareScanOutcome[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static EMalwareScanOutcome valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • in

      public boolean in(EMalwareScanOutcome... elements)
      Parameters:
      elements - the enum elements for the 'in' check
      Returns:
      true if this is contained in the provided enum elements, false otherwise.