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

add support for the root key id #53

Merged
merged 3 commits into from
Jan 28, 2023
Merged

add support for the root key id #53

merged 3 commits into from
Jan 28, 2023

Conversation

Geal
Copy link
Contributor

@Geal Geal commented Jan 27, 2023

if the root key changes, it can happen that we receive tokens signed with different keys. The root key id field is use to indicate which key should be used. We introduce the KeyDelegate interface to let the caller decide which root key will be used.

if the root key changes, it can happen that we receive tokens signed
with different keys. The root key id field is use to indicate which key
should be used. We introduce the KeyDelegate interface to let the caller
decide which root key will be used
@Geal
Copy link
Contributor Author

Geal commented Jan 27, 2023

I used polymorphism to avoid breaking existing APIs, but that introduces a lot of new methods, and I'm worried I might have missed one. Is it fine to proceed like this @KannarFr ?

@KannarFr
Copy link
Contributor

Let us mark other methods deprecated.

@Geal Geal merged commit a8d0450 into master Jan 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants