-
Notifications
You must be signed in to change notification settings - Fork 245
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
feat: create model transformers for VC and VP #3515
feat: create model transformers for VC and VP #3515
Conversation
...ust-spi/src/main/java/org/eclipse/edc/identitytrust/model/VerifiableCredentialContainer.java
Dismissed
Show dismissed
Hide dismissed
* This container object is intended to hold a {@link VerifiableCredential}, its raw representation and which format it is in. | ||
* | ||
* @param rawVc A String containing the VC in its raw format. This must be exactly how it was originally received by the issuer. | ||
* @param format indicates whether the VC is present in JWT or JSON-LD format |
Check notice
Code scanning / CodeQL
Spurious Javadoc @param tags Note
...ust-spi/src/main/java/org/eclipse/edc/identitytrust/model/VerifiableCredentialContainer.java
Dismissed
Show dismissed
Hide dismissed
8f1c086
to
b52b228
Compare
...ansform/src/main/java/org/eclipse/edc/iam/identitytrust/IdentityTrustTransformExtension.java
Outdated
Show resolved
Hide resolved
...tity-trust-spi/src/main/java/org/eclipse/edc/identitytrust/model/VerifiablePresentation.java
Show resolved
Hide resolved
/** | ||
* This container object is intended to hold a {@link VerifiableCredential}, its raw representation and which format it is in. | ||
* | ||
* @param rawVp A String containing the VP in its raw format. This must be exactly how it was originally received by the holder. |
Check notice
Code scanning / CodeQL
Spurious Javadoc @param tags Note
* This container object is intended to hold a {@link VerifiableCredential}, its raw representation and which format it is in. | ||
* | ||
* @param rawVp A String containing the VP in its raw format. This must be exactly how it was originally received by the holder. | ||
* @param format indicates whether the VP is present in JWT or JSON-LD format |
Check notice
Code scanning / CodeQL
Spurious Javadoc @param tags Note
* | ||
* @param rawVp A String containing the VP in its raw format. This must be exactly how it was originally received by the holder. | ||
* @param format indicates whether the VP is present in JWT or JSON-LD format | ||
* @param credential the {@link VerifiablePresentation}, as it was deserialized from the raw VP string. Note that JSON-LD and JWT VCs |
Check notice
Code scanning / CodeQL
Spurious Javadoc @param tags Note
Codecov ReportAttention:
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #3515 +/- ##
==========================================
- Coverage 72.10% 72.06% -0.04%
==========================================
Files 832 839 +7
Lines 16947 17017 +70
Branches 954 956 +2
==========================================
+ Hits 12220 12264 +44
- Misses 4323 4346 +23
- Partials 404 407 +3
☔ View full report in Codecov by Sentry. |
What this PR changes/adds
This PR adds transformers that can convert JSON-LD ->
VerifiableCredential
andVerifiablePresentation
.Why it does that
Preliminary work needed for subsequent IATP adoption tasks.
Further notes
VerifiableCredential
itself does not hold the raw VC anymoreVerifiableCredentialContainer
(name is up for discussion), that stores the raw VC (JWT or JSON-LD), the credential format and the deserializedVerifiableCredential
instance.Linked Issue(s)
Closes #3501
Please be sure to take a look at the contributing guidelines and our etiquette for pull requests.