ManageRules
@objc
public class ManageRules : NSObject, InitializationStateProvider
Class to manage the behavior of specific security features.
-
Update the rules on how content is checked.
Declaration
Swift
@discardableResult public static func setPasswordStrengthRules(_ rules: PasswordStrengthRules) -> Bool
Parameters
rules
The rules to be updated
Return Value
true
if the rules were updated, otherwisefalse
-
Get the current rules
Declaration
Swift
public static func getPasswordStrengthRules() -> PasswordStrengthRules
Return Value
a
PasswordStrengthRules
object
-
Update the rules on how content is checked.
Declaration
Swift
@discardableResult public static func setContentCheckerRules(_ rules: ContentCheckerRules) throws -> Bool
Parameters
rules
The rules to be updated
Return Value
true
if the rules were updated, otherwisefalse
-
Get the rules which define how content is checked.
Declaration
Swift
public static func getContentCheckerRules() throws -> ContentCheckerRules
Return Value
A rules that is currently used by the runtime
-
Get the rules which define how the device offline threat level is evaluated.
Declaration
Swift
public static func getDeviceOfflineRules() throws -> DeviceOfflineRules
Return Value
A rules that is currently used by the runtime
-
Update how the device offline threat level is evaluated.
Declaration
Swift
@discardableResult public static func setDeviceOfflineRules(_ rules: DeviceOfflineRules) throws -> Bool
Parameters
rules
The rules to be updated
Return Value
true
if the rules were updated, otherwisefalse
-
Get the rules which define how the device security is evaluated.
Declaration
Swift
public static func getDeviceSecurityRules() throws -> DeviceSecurityRules
Return Value
A rules that is currently used by the runtime
-
Update how the device security is evaluated.
Declaration
Swift
@discardableResult public static func setDeviceSecurityRules(_ rules: DeviceSecurityRules) throws -> Bool
Parameters
rules
The rules to be updated
Return Value
true
if the rules were updated, otherwisefalse
-
Get the minimum operating system version which is permitted on the device and list of restricted devices.
Declaration
Swift
public static func getDeviceSoftwareRules() throws -> DeviceSoftwareRules
Return Value
A rules that is currently used by the runtime
-
Update the minimum version of operating system permitted on the device.
Declaration
Swift
@discardableResult public static func setDeviceSoftwareRules(_ rules: DeviceSoftwareRules) throws -> Bool
Parameters
rules
The rules to be updated
Return Value
true
if the rules were updated, otherwisefalse