• BlackBerry Dynamics
  • Runtime library for Android applications
Threat Class Reference

Interface for retrieving threat details for a specific ThreatType.

Inherited by ThreatApplicationSecurity, ThreatAppMalware, ThreatAppSideload, ThreatDeviceSecurity, ThreatDeviceSoftware, ThreatGeoZone, ThreatIdentity, ThreatNetworkSecurity, and ThreatWiFiSecurity.

Public Member Functions

ThreatType getType ()
 Indicate the type of threat being checked. More...
long getEvaluatedTime ()
 Determine when the check last completed. More...
ThreatLevel getRiskLevel ()
 Return the level of risk posed by the threat. More...
boolean getDetectionEnabled ()
 Check whether the threat is being evaluated. More...
String getInfo ()
 Get information on possible remediation actions to the threat. More...

Member Function Documentation

◆ getType()

ThreatType getType ( )

Indicate the specific type of threat being checked.


◆ getEvaluatedTime()

long getEvaluatedTime ( )

Return the timestamp of when the threat was last evaluated. For example, when a malware scan was last completed.

Unix timestamp in milliseconds of when the check last ran. The result is 0 if checks have not yet been performed, for example after the app hosting the runtime has just been installed.

◆ getRiskLevel()

ThreatLevel getRiskLevel ( )

Return the level of risk posed by the threat.


◆ getDetectionEnabled()

boolean getDetectionEnabled ( )

Check whether the threat is being evaluated by the runtime. If detection is not enabled it may be because the feature hasn't been enabled by the enterprise administrator. Alternatively for some threats, like GeoZone, the end user is required to allow a specific a system permission, e.g. location, in order for the runtime to be able to perform checks. If a required permission is not allowed by the user the threat detection will be disabled.

true if the detection is enabled.
false if detection is disabled.

◆ getInfo()

String getInfo ( )

Return a string providing any possible remediation actions or further details about the threat.

String providing remediation information.