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 false then the playback will not be allowed. Default value is true.

    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 ifallowPlaybackOnInsecureDevice property set to false.,

    Declaration

    Swift

    var isDeviceSecure: Bool { get }
  • Access the property to know the fauilure reason only if isDeviceSecure property 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?)