Skip to content

Releases: GDATASoftwareAG/vaas

cs7.6.3

10 Feb 08:51
2e930d6
Compare
Choose a tag to compare

What's Changed

Full Changelog: cs7.6.2...cs7.6.3

ts7.6.4

04 Feb 07:32
d8c8761
Compare
Choose a tag to compare

What's Changed

Full Changelog: java9.0.1...ts7.6.4

java9.0.1

04 Feb 07:32
30208d4
Compare
Choose a tag to compare

What's Changed

Full Changelog: java9.0.0...java9.0.1

java9.0.0

02 Feb 20:53
Compare
Choose a tag to compare

What's Changed

This is a major release and may break your code. Please read the full changelog before upgrading.

  • Change to HTTP API: This release changes the underlying protocol used by the SDK from Websockets to HTTP.
  • No connect() needed: Since the SDK now uses HTTP, it is stateless and does not require a connection to be established.
  • Async API: The SDK now uses a fully async API. All methods now return non-blocking CompletableFuture's instead.
  • Sync API: A synchronous API is also available. This is a thin wrapper around the async API. The main difference is that the synchronous API blocks until the result is available and returns the result directly. Also exceptions are thrown directly instead of being wrapped in an ExecutionException with an inner exception you have to unwrap.
  • Method calls: Even though the SDK is now async over HTTP the method signatures are mostly the same. Please take a look at the Java SDK examples.
  • Documentation: Please take a look at the method documentation in the IVaas interface here.

How to migrate

To scan a file, you previously had to proceed as follows:

var authenticator = new ClientCredentialsGrantAuthenticator(clientId, clientSecret, new URI(tokenUrl));
var config = new VaasConfig(new URI(vaasUrl));
var vaas = new Vaas(config, authenticator);

vaas.connect();

var verdict = vaas.forFile(Path.of(filePath));

vaas.disconnect();

System.out.printf("File %s was detected as %s", verdict.getSha256(), verdict.getVerdict()));

With the new SDK, you can now scan a file like this:

var authenticator = new ClientCredentialsGrantAuthenticator(env.clientId, env.clientSecret, new URI(env.tokenUrl));
var config = new VaasConfig(new URI(env.vaasUrl));
var vaas = new Vaas(config, authenticator);

var verdict = vaas.forFile(Path.of(filePath));

System.out.printf("File %s was sync detected as %s", verdict.getSha256(), verdict.getVerdict());

Or with the async API:

var authenticator = new ClientCredentialsGrantAuthenticator(env.clientId, env.clientSecret, new URI(env.tokenUrl));
var config = new VaasConfig(new URI(env.vaasUrl));
var vaas = new Vaas(config, authenticator);

// Take care that exceptions need to be unpacked from ExecutionException or CompletionException
vaas.forFileAsync(file).thenAccept(vaasResult -> {
            System.out.printf("\nFile %s was async detected as %s", vaasResult.getSha256(), vaasResult.getVerdict());
        }).get();

Full Changelog: java8.3.8...java9.0.0

ts7.6.3

27 Jan 07:58
dc4b88d
Compare
Choose a tag to compare

What's Changed

Full Changelog: ts7.6.2...ts7.6.3

ts7.6.2

14 Jan 07:28
3b369d2
Compare
Choose a tag to compare

What's Changed

Full Changelog: cs7.6.2...ts7.6.2

golang/vaas/v3.0.12

14 Jan 12:17
ba6407d
Compare
Choose a tag to compare

What's Changed

  • build(deps): bump golang.org/x/crypto from 0.24.0 to 0.31.0 in /golang/vaas by @dependabot in #693
  • build(deps): bump golang.org/x/net from 0.26.0 to 0.33.0 in /golang/vaas by @dependabot in #694
  • golang: Update module github.com/go-playground/validator/v10 to v10.24.0 by @ata-no-one in #695

Full Changelog: ts7.6.2...golang/vaas/v3.0.12

ts7.6.1

08 Jan 09:21
206d83f
Compare
Choose a tag to compare

What's Changed

Full Changelog: ts7.6.0...ts7.6.1

cs7.6.2

08 Jan 09:22
ab9f3da
Compare
Choose a tag to compare

What's Changed

Full Changelog: ts7.6.1...cs7.6.2

ts7.6.0

02 Dec 08:56
4184323
Compare
Choose a tag to compare

What's Changed

Full Changelog: golang/vaas/v3.0.11...ts7.6.0