FLDeviceSecurity
public protocol FLDeviceSecurity
The interface to check and block playback from insecure devices
-
The property to defne whether the security check should happen or not. If the value set to
falsethen the playback will not be allowed. Default value istrue.Declaration
Swift
var allowPlaybackOnInsecureDevice: Bool { get set } -
To get the device security status. Default value is
true. Access the property to know the result only ifallowPlaybackOnInsecureDeviceproperty set to false.,Declaration
Swift
var isDeviceSecure: Bool { get } -
Access the property to know the fauilure reason only if
isDeviceSecureproperty is false.Declaration
Swift
var securityFailureReason: String? { get } -
Funtion to enabled addition security checks. This will apply on top of default jailbreak detection.
Declaration
Swift
func setAdditionalChecks(checks: [SecurityChecks]) -
getDeviceSecurityStatus(check:Default implementation) This function will perform all the security checks irrespective of above properties and functions.
Default Implementation
Declaration
Swift
func getDeviceSecurityStatus(check bundleId: String?) -> (status: Bool, failureReason: String?) -
This function will perform the required security checks based on the addional cheks set. Default to check jailbreak + reverse-engineering.
Declaration
Swift
func getDeviceSecurityStatus(with additionalChecks: [SecurityChecks]) -> (status: Bool, failureReason: String?)