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
+6-2Lines changed: 6 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -154,18 +154,20 @@ When malicious content is detected in the scanned object, `scanResult` will show
154
154
155
155
The AmaasClient class is the main class of the SDK and provides methods to use the AMaaS scanning services.
156
156
157
-
#### ```public AMaasClient(final String region, final String apiKey, final long timeoutInSecs, final boolean enabledTLS) throws AMaasException```
157
+
#### ```public AMaasClient(final String region, final String host, final String apiKey, final long timeoutInSecs, final boolean enabledTLS, final string caCert) throws AMaasException```
158
158
159
159
Creates a new instance of the `AmaasClient` class, and provisions essential settings, including authentication/authorization credentials (API key), preferred service region, etc.
| region | The region you obtained your api key. Value provided must be one of the Vision One regions, e.g. `us-east-1`, `eu-central-1`, `ap-northeast-1`, `ap-southeast-2`, `ap-southeast-1`, `ap-south-1`, etc. |
165
+
| region | The region you obtained your api key. Value provided must be one of the Vision One regions, e.g. `us-east-1`, `eu-central-1`, `ap-northeast-1`, `ap-southeast-2`, `ap-southeast-1`, `ap-south-1`, etc. If host is given, region will be ignored. |
166
+
| host | The host ip address of self hosted AMaaS scanner. Ignore if to use Trend AMaaS service |
166
167
| apikey | Your own Vision One API Key. |
167
168
| timeoutInSecs | Timeout to cancel the connection to server in seconds. Valid value is 0, 1, 2, ... ; default to 300 seconds. |
168
169
| enabledTLS | Enable or disable TLS. TLS should always be enabled when connecting to the AMaaS server. For more information, see the 'Ensuring Secure Communication with TLS' |
170
+
| caCert | File path of the CA certificate for hosted AMaaS Scanner server. null if using Trend AMaaS service. |
169
171
170
172
**_Return_**
171
173
An AmaasClient instance
@@ -211,6 +213,7 @@ Scan a file for malware, add a list of tags to the scan result and retrieves res
211
213
| pml | A flag to indicate whether to enable predictive machine learning detection. |
212
214
| feedback | A flag to indicate whether to enable Trend Micro Smart Protection Network's Smart Feedback. |
213
215
| verbose | A flag to enable log verbose mode. |
216
+
| digest | A flag to enable/disable calculation of digests for cache search and result lookup. |
214
217
215
218
**_Return_**
216
219
String the scanned result in JSON format.
@@ -243,6 +246,7 @@ Scan a buffer for malware, add a list of tags to the scan result, and retrieves
243
246
| pml | A flag to indicate whether to enable predictive machine learning detection. |
244
247
| feedback | A flag to indicate whether to enable Trend Micro Smart Protection Network's Smart Feedback. |
245
248
| verbose | A flag to enable log verbose mode. |
249
+
| digest | A flag to enable/disable calculation of digests for cache search and result lookup. |
0 commit comments