You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+85-4Lines changed: 85 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -75,6 +75,8 @@ public static void main(String[] args) {
75
75
76
76
### Sample JSON Response
77
77
78
+
#### Concise Format
79
+
78
80
```json
79
81
{
80
82
"version": "1.0",
@@ -94,6 +96,58 @@ public static void main(String[] args) {
94
96
95
97
When malicious content is detected in the scanned object, `scanResult` will show a non-zero value. Otherwise, the value will be `null`. Moreover, when malware is detected, `foundMalwares` will be non-empty containing one or more name/value pairs of `fileName` and `malwareName`. `fileName` will be filename of malware detected while `malwareName` will be the name of the virus/malware found.
@@ -144,7 +198,7 @@ Scan a file for malware and retrieves response data from the API.
144
198
**_Return_**
145
199
String the scanned result in JSON format.
146
200
147
-
#### ```public String scanFile(final String fileName, final String[] tagList, final boolean pml, final boolean feedback) throws AMaasException```
201
+
#### ```public String scanFile(final String fileName, final String[] tagList, final boolean pml, final boolean feedback, final boolean verbose) throws AMaasException```
148
202
149
203
Scan a file for malware, add a list of tags to the scan result and retrieves response data from the API.
150
204
@@ -156,6 +210,7 @@ Scan a file for malware, add a list of tags to the scan result and retrieves res
156
210
| tagList | A list of strings to be used to tag the scan result. At most 8 tags with the maximum length of 63 characters. |
157
211
| pml | A flag to indicate whether to enable predictive machine learning detection. |
158
212
| feedback | A flag to indicate whether to enable Trend Micro Smart Protection Network's Smart Feedback. |
213
+
| verbose | A flag to enable log verbose mode. |
159
214
160
215
**_Return_**
161
216
String the scanned result in JSON format.
@@ -174,7 +229,7 @@ Scan a buffer for malware and retrieves response data from the API.
174
229
**_Return_**
175
230
String the scanned result in JSON format.
176
231
177
-
#### ```public String scanBuffer(final byte[] buffer, final String identifier, final String[] tagList, final boolean pml, final boolean feedback) throws AMaasException```
232
+
#### ```public String scanBuffer(final byte[] buffer, final String identifier, final String[] tagList, final boolean pml, final boolean feedback, final boolean verbose) throws AMaasException```
178
233
179
234
Scan a buffer for malware, add a list of tags to the scan result, and retrieves response data from the API.
180
235
@@ -187,6 +242,7 @@ Scan a buffer for malware, add a list of tags to the scan result, and retrieves
187
242
| tagList | A list of strings to be used to tag the scan result. At most 8 tags with maximum length of 63 characters. |
188
243
| pml | A flag to indicate whether to enable predictive machine learning detection. |
189
244
| feedback | A flag to indicate whether to enable Trend Micro Smart Protection Network's Smart Feedback. |
245
+
| verbose | A flag to enable log verbose mode. |
190
246
191
247
**_Return_**
192
248
String the scanned result in JSON format.
@@ -207,7 +263,7 @@ public class AmaasScanResult {
207
263
privateString fileName:// Name of the file scanned
208
264
privateMalwareItem[] foundMalwares; // A list of malware names and the filenames found by AMaaS
209
265
210
-
// getter and seter methods for the above private variables.
266
+
// getter and setter methods for the above private variables.
211
267
}
212
268
```
213
269
@@ -223,7 +279,32 @@ public class MalwareItem {
223
279
privateString malwareName; // A detected Malware name
224
280
privateString fileName:// File name that the malware is detected.
225
281
226
-
// getter and seter methods for the above private variables.
282
+
// getter and setter methods for the above private variables.
283
+
}
284
+
```
285
+
286
+
### ```AMaasScanResultVerbose```
287
+
288
+
The AMaasScanResultVerbose has the data elements of the response data in verbose mode that is retrieved from our API. The class has the following private members. There are getter and setter methods for each of the members. See javaDoc for the class of each data element.
289
+
290
+
```java
291
+
publicclassAMaasScanResultVerbose {
292
+
privateString scanType; // Type of scan
293
+
privateString objectType; // Type of the object being scanned. e.g, file
294
+
privateStartEnd timestamp; // begin and end time strings in ISO 8601 format
295
+
privateString schemaVersion; // Version of the data schema
296
+
privateString scannerVersion; // Scanner version
297
+
privateString fileName; // Name of the file
298
+
privatelong rsSize; // Size of the scanned file
299
+
privateString scanId; // ID of the scan
300
+
privateString accountId; // ID of the customer
301
+
privateScanResult result; // Result for the current scan
302
+
privateString[] tags; // Tags used for this scan
303
+
privateString fileSha1; // Sha1 of the scanned file
304
+
privateString fileSha256; // Sha256 of the scanned file
305
+
privateString appName; // Name of the application
306
+
307
+
// getter and setter methods for the above private variables.
0 commit comments