API
Types
TalsecConfig
TalsecConfig
Specifies configuration for your app. See the table below for detailed description of the attributes.
field | type | description | sample value |
---|---|---|---|
androidConfig | AndroidConfig? | Configuration for Android apps | any AndroidConfig instance |
iosConfig | IOSConfig? | Configuration for iOS apps | any IOSConfig instance |
watcherMail | string | The value is automatically used as the target address for your security reports. Mail has a strict form | ' |
isProd | boolean? | Defaults to |
|
AndroidConfig
AndroidConfig
Specifies configuration for instances of the app running on Android devices. See the table below for detailed description of the attributes.
field | type | description | sample value |
---|---|---|---|
packageName | string | Package name of the app. | ' |
certificateHashes | string[] | Certificate hashes of your app. |
|
supportedAlternativeStores | string[] | Package names of the alternative stores. If you publish on the Google Play Store and Huawei AppGallery, as these are already included internally. (You can assign just | [ |
IOSConfig
IOSConfig
Specifies configuration for instances of the app running on Android devices. See the table below for detailed description of the attributes.
field | type | description | sample value |
---|---|---|---|
appBundleId | string | Apple Bundle ID for the app | ' |
appTeamId | string | Apple Team ID used in the app | 'M8AK35...' |
NativeEventEmitterActions
NativeEventEmitterActions
Specifies a set of callbacks that are used to notify the application when certain security threat is detected.
Actions
threat | type | Android | iOS |
---|---|---|---|
| () => any | ||
| () => any | ||
| () => any | ||
| () => any | ||
| () => any | ||
| () => any | ||
| () => any | ||
| () => any | ||
| () => any | ||
| () => any | ||
| () => any | ||
| () => any | ||
| () => any | ||
| () => any |
Methods
const start = async (config: FreeraspConfig,
eventListenerConfig: NativeEventEmitterActions): Promise<void>
const start = async (config: FreeraspConfig,
eventListenerConfig: NativeEventEmitterActions): Promise<void>
Method is used to start freeRASP's audit and set up listeners for threats.
Last updated