Verdict-as-a-Service
Developers can find examples for testing our SDKs in every repository of supported programming languages.
This guide shows how to use Verdict-as-a-Service in the cloud. It uses the Java SDK and is intended for non-developers who want to test Verdict-as-a-Service.
Are you interested in testing the on-premise deployment? In this case, you cannot use the self-generated access data. We kindly request that you contact us first, without obligation. |
Testing of Verdict-as-a-Service Cloud
To try the Java example, follow these steps:
If you have a CLIENT_ID and a CLIENT_SECRET, this step is not necessary. |
-
If you do not already have one, install a IDE (integrated development environment)
In our example we are using IntelliJ IDEA
-
Clone the VaaS repository from Github using the following link:
https://github.com/GDATASoftwareAG/vaas.git
Screenshot
-
Open the folder (File→Open)
C:\vaas\java\examples\VaasExample
Screenshot
-
Open the file build.gradle in the object tree on the left. Here you will find a code section for testing the Verdict-as-a-Service file check.
-
To test the Verdict-as-a-Service file scan, provide credentials (see above) and the path and name of the file to be checked.
To do this, open the environment variable configuration by clicking the green run icon in front of the code snippet (File- or URL-Scan) and select Modify Run Configuration.
Screenshot
-
Add the following environment variables using the list icon (see screenshot):
-
SCAN_PATH [Value = The path and name of the file you want to scan].
-
VAAS_PASSWORD [Value = Your password (see step 1)].
-
VAAS_USER_NAME, [value = Your username (see step 1)]
-
Screenshot
If you already have a CLIENT_ID and a CLIENT_SECRET, do not enter the variables VAAS_PASSWORD and VAAS_USER_NAME at this point, but CLIENT_ID and CLIENT_SECRET instead |
In this example, the verdict is displayed on the screen.
Developers may choose to process this verdict in their software according to their own specifications.
Additional software development kits (SDKs) for a variety of programming languages can be found on GitHub.
If you have any questions, please contact our experts without obligation.