-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Java/http api #676
base: main
Are you sure you want to change the base?
Java/http api #676
Conversation
…e its async implementation does not support inputstreams but java async http does
…get the captured content in my test, fantastic
java/src/main/java/de/gdata/vaas/ClientCredentialsGrantAuthenticator.java
Outdated
Show resolved
Hide resolved
java/src/main/java/de/gdata/vaas/ResourceOwnerPasswordGrantAuthenticator.java
Outdated
Show resolved
Hide resolved
|
||
return forSha256(sha256, forSha256Options) | ||
.thenCompose(handleException(vaasVerdict -> { | ||
var verdictWithoutDetection = vaasVerdict.getVerdict() == Verdict.MALICIOUS |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This and the following if are strange. Please compare to golang.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This part is inspired by the csharp implementation. When requesting forSha256, two cases can happen:
- Cached Sha256 with detection, mimetype, etc.
- Hashlookup without detection
This condition is for case 1
No description provided.