Skip to content
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

fix: use the new JwsSignerProvider interface #419

Conversation

paullatzelsperger
Copy link
Member

What this PR changes/adds

adapts the code base to use the new JwsSignerProvider introduced recently in upstream EDC

Why it does that

compile errors

Further notes

also updates the version catalog entry edc.common.crypto -> edc.libs.common.crypto for consistency

Linked Issue(s)

Closes # <-- insert Issue number if one exists

Please be sure to take a look at the contributing guidelines and our etiquette for pull requests.

@paullatzelsperger paullatzelsperger added the bug Something isn't working label Aug 8, 2024
@Provider(isDefault = true)
public JwsSignerProvider defaultSignerProvider() {
// default implementation: resolve the private key (from vault of config) and create a JWSSigner based on its algorithm
return privateKeyId -> privateKeyResolver.resolvePrivateKey(privateKeyId)
Copy link
Member

Choose a reason for hiding this comment

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

this is also duplicated in the connector, maybe it could be extracted in a class and put in the crypto-common-lib module

Copy link
Member Author

@paullatzelsperger paullatzelsperger Aug 9, 2024

Choose a reason for hiding this comment

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

need to merge eclipse-edc/Connector#4403 first

@paullatzelsperger paullatzelsperger merged commit 15974ab into eclipse-edc:main Aug 9, 2024
14 checks passed
@paullatzelsperger paullatzelsperger deleted the fix/use_jwssignerprovider branch August 9, 2024 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants