Package de.xima.fc.mdl.enums
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 Summary
Enum Constants Enum Constant Description INVALID_FILE_EXTENSION
Content type verification failed (file content doesn't match file extension).NO_MALWARE_DETECTED
No malware signatures were detected despite best efforts.NO_SCANNER_AVAILABLE
No scan could be performed because no scanner is available.POTENTIAL_MALWARE_SIGNATURE_FOUND
At least one potential malware signature was found.SCAN_FAILURE
Scanning failed due to an unhandled exception.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
in(EMalwareScanOutcome... elements)
static EMalwareScanOutcome
valueOf(String name)
Returns the enum constant of this type with the specified name.static EMalwareScanOutcome[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
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 Detail
-
values
public static EMalwareScanOutcome[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (EMalwareScanOutcome c : EMalwareScanOutcome.values()) System.out.println(c);
- 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 nameNullPointerException
- 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.
-
-