Skip to content
This repository has been archived by the owner on Jan 20, 2025. It is now read-only.

Add credential service to DID document #92

Conversation

aleksandra-bel
Copy link
Contributor

This is implementation of adding credential service to DID document
Closes: eclipse-tractusx/managed-identity-wallet#243

Pre-review checks

Please ensure to do as many of the following checks as possible, before asking for committer review:

@aleksandra-bel aleksandra-bel marked this pull request as ready for review March 5, 2024 09:07
Copy link
Contributor

@borisrizov-zf borisrizov-zf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just that one comment about the error text would interest me.

Objects.requireNonNull(this.getServiceEndpoint(), "serviceEndpoint is null");
} catch (Exception e) {
throw new IllegalArgumentException(
String.format("Invalid VerificationMethod: %s", SerializeUtil.toJson(json)), e);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is the message mentioning an invalid verification method? Wouldn't it be more reasonable to note that the error comes from the service?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, this is certainly not correct. Fixed in 04a228d

@borisrizov-zf borisrizov-zf merged commit 8ef6325 into eclipse-tractusx:main Mar 5, 2024
3 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add credential service to DID document
2 participants