• BlackBerry Spark AppSecure
  • Security library for Android applications
  • 0.7.915.0
ManageFeatures Class Reference

Manage which security features are enabled. More...

Description

Class to control the configuration of security features in the runtime.

Classes

enum  FeatureStatus
 Enumerator to describe the state of checks for a specific security feature. More...
 

Public Member Functions

FeatureStatus getFeature (ThreatType aFeatureType)
 Returns whether a specific threat detection feature is being evaluated. More...
 
boolean enableFeature (ThreatType aFeatureType)
 Enable a specific security feature of the library. More...
 
boolean disableFeature (ThreatType aFeatureType)
 Prevent a specific threat type from being detected by the library. More...
 

Member Function Documentation

◆ getFeature()

FeatureStatus getFeature ( ThreatType  aFeatureType)

Returns whether a specific security threat will be detected by the runtime. By default all features are enabled.

Parameters
aFeatureTypeThe specific security feature to be checked.
Returns
FeatureStatus Whether the check is enabled, disabled or unavailable.

◆ enableFeature()

boolean enableFeature ( ThreatType  aFeatureType)

By default all threat types are enabled and any threats detected can be monitored using the ThreatStatus interface. However if a specific feature has been manually disabled, call this method to re-enable it.

Parameters
aFeatureTypeThe specific security feature to be enabled.
Returns
true if the operation was successful.
false if the operation failed.

◆ disableFeature()

boolean disableFeature ( ThreatType  aFeatureType)

To prevent being notified of specific threat type and disable the relevant checks, call this method indicating the ThreatType you wish to disable. For example to disable scanning of application for malware include 'AppMalware' as the ThreatType.

Parameters
aFeatureTypeThe specific security feature to be disabled, e.g. SafeMessaging.
Returns
true if the operation was successful.
false if the operation failed.