Application

data class Application(val rasp: RASP)

This data class provides functionalities related to the device Application section, such as uploading an application for threat analysis, retrieving the application report or updating an installed application.

Parameters

rasp

RASP — the main instance to use the Pradeo software

Constructors

Link copied to clipboard
constructor(rasp: RASP)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val rasp: RASP
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

This method allows to ask for the antivirus analysis of an application. It should be called if you consistently receive a 'Not Scanned' status by the retrieveDeviceApplicationAntivirusScan method.

Link copied to clipboard

Get signatures for my application package

Link copied to clipboard
suspend fun getCertifierToken(): String

This method is used to generate a token if this application has been certified.

Link copied to clipboard
suspend fun retrieveApplicationReportStatus(application: ApplicationMetadata, automaticUpload: Boolean = false, shrink: Boolean = true): Flow<Pair<ApplicationReportStatus, Any?>>

This method allows you to retrieve the report of an application by sending multiple requests in between multiple delay times.

Link copied to clipboard

This method allows you to retrieve the antivirus scans of an application. It contains a list of Antivirus scanners that flagged the application in question as a Virus.

Link copied to clipboard
suspend fun retrieveDeviceApplicationReport(application: ApplicationMetadata): Response.RetrieveDeviceApplicationReportV3

This method allows to retrieve the report of an application's analysis.

This method allows you to retrieve the report of an application.

Link copied to clipboard
suspend fun uploadApplication(application: ApplicationMetadata, shrink: Boolean = true): String

This method is used to upload an application for threat analysis. A report of the application will be generated after the analysis (generally after about 1-2 minutes). The generated report will remain in your environment to be retrieved at any time. A good practice is to use the retrieveApplicationReportStatus method to check whether the application report already exists or not. You can also upload your applications using retrieveApplicationReportStatus in case the reports aren't found.