Singleton class providing details of security threats related to the device, application, network, and user.
More...
To receive a local broadcast when the ThreatStatus changes, register to intent ACTION_THREAT_STATE_NOTIFICATION.
◆ getInstance()
◆ getOverallThreatLevel()
Return the overall level of risk combining all threat types being evaluated. For example, if any detected threat poses a HIGH risk then the overall threat level will also be deemed to be HIGH.
- Returns
- ThreatLevel
◆ getThreat() [1/2]
Return details for specific threat type including the risk level, evaluation time and status.
- Parameters
-
- Returns
- Threat object for the requested ThreatType.
-
null if ThreatType does not have corresponding Threat object. For example SafeMessaging & SafeBrowsing where Threat level is specific to each check
◆ getThreat() [2/2]
Return the threat information of all types of threats which are evaluated by the runtime.
- Returns
- A vector Threat for all available types.
◆ ACTION_THREAT_STATE_NOTIFICATION
final String ACTION_THREAT_STATE_NOTIFICATION = "BBDThreatStatusNotificationPublic" |
|
static |
To receive a local broadcast when the ThreatStatus changes register to intent action LibraryInit.ACTION_THREAT_STATE_NOTIFICATION,
Example (Java)
private LibraryInit mSecurity;
..
..
IntentFilter filter = new IntentFilter();
filter.addAction(ThreatStatus.ACTION_THREAT_STATE_NOTIFICATION);
mSecurity.registerReceiver(new BroadcastReceiver() {
@Override
public void onReceive(Context context, Intent intent) {
}
}, filter);