[Support][WIP] java calling conventions #13
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a test of a wrapper for
did-jwt
usable in a JAVA 8 app.This is a java compatible
did-jwt
library built by wrapping the kotlin variant.in your
build.gradle
:dependencies { implementation "com.github.uport-project.kotlin-did-jwt:jwt-java:c872ff3" }
The wrapper exposes the same signature as the kotlin variant so they are not usable in the same project.
This is not set in stone so if needed, they can be differentiated, because it's likely there need to be different calling conventions for Java (builder pattern since there are no default params).
As opposed to the coroutines of the kotlin variant, the wrapper methods result in
CompletableFuture<*>
so they are usable in a Java 8 context.create a token
verify a token
Also, there's a test artifact that can be used to mock some EthrDID doc calls.
testImplementation "com.github.uport-project.kotlin-did-jwt:jwt-test:eb45524e15"