sensitivity.io for iOS & macOS  1.1.4
Instance Methods | Properties | List of all members
ThreatHandler Class Reference

#import <ThreatHandler.h>

Inheritance diagram for ThreatHandler:

Instance Methods

(instancetype _Nonnull) - initWithData:
 
(sensitivityio_tribool_t) - handleThreat:
 

Properties

id data
 

Detailed Description

ThreatHandler class provides the means to define your own stop scan condition by handling each threat as it is discovered.

Method Documentation

◆ handleThreat:()

- (sensitivityio_tribool_t) handleThreat: (ThreatInfo *_Nonnull)  threatInfo

Override this method to handle the found threat and decide to stop or continue scanning. If not overridden it always returns sensitivityio_3b_indeterminate.

See also
sensitivityio/c_base/tribool.h
Parameters
threatInfoThe threat found on scan, based on which the handler should stop or continue the scan
Returns
Return sensitivityio_3b_true to continue scanning, sensitivityio_3b_false to stop scanning and sensitivityio_3b_indeterminate in case of error.

◆ initWithData:()

- (instancetype _Nonnull) initWithData: (id _Nonnull)  data

Initializes a new object immediately after memory for it has been allocated

Note
The designated initializer
Parameters
dataThe helper data of this threat handler
Returns
The initialized object

Property Documentation

◆ data

- (id) data
readwritenonatomicstrong

Helper data used to handle threats one at a time.


The documentation for this class was generated from the following file: