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

Class to manage the behavior of specific security features.

Public Member Functions

boolean setPasswordStrengthRules (PasswordStrengthRules rules)
 Update the rules defining password strength criteria. More...
 
PasswordStrengthRules getPasswordStrengthRules ()
 Return the rules for password strength checking.
 
boolean setMalwareScanRules (MalwareScanRules rules)
 Update the rules defining when and how malware is scanned. More...
 
MalwareScanRules getMalwareScanRules ()
 Return the rules for scanning malware.
 
boolean setContentCheckerRules (ContentCheckerRules rules)
 Update the rules on how content is checked.
 
ContentCheckerRules getContentCheckerRules ()
 Return the rules which define how content is checked.
 
boolean setDeviceOfflineRules (DeviceOfflineRules rules) throws IllegalArgumentException
 Update the rules for connectivity loss. More...
 
DeviceOfflineRules getDeviceOfflineRules ()
 Return the rules for connectivity loss.
 
boolean setDeviceSecurityRules (DeviceSecurityRules rules)
 Update how the device security is evaluated.
 
DeviceSecurityRules getDeviceSecurityRules ()
 Return the rules which define how the device security is evaluated.
 
boolean setDeviceSoftwareRules (DeviceSoftwareRules rules)
 Set the minimum version of operating system or security patch levels permitted on the device.
 
DeviceSoftwareRules getDeviceSoftwareRules ()
 Return the minimum versions of software or security patches which are permitted on the device.
 

Member Function Documentation

◆ setPasswordStrengthRules()

boolean setPasswordStrengthRules ( PasswordStrengthRules  rules)

Update the rules defining password strength criteria

Parameters
rulesPasswordStrengthRules object containing the new rules to be set.

◆ setMalwareScanRules()

boolean setMalwareScanRules ( MalwareScanRules  rules)

Update the rules on how the scan is triggered and how applications are uploaded for scanning.

Parameters
rulesMalwareScanRules object containing the new rules to be set.

◆ setDeviceOfflineRules()

boolean setDeviceOfflineRules ( DeviceOfflineRules  rules) throws IllegalArgumentException
Exceptions
IllegalArgumentExceptionif minutesToMediumThreatLevel is greater than minutesToHighThreatLevel or if minutesToMediumThreatLevel or minutesToHighThreatLevel is less than or equal to 0