biscuit-auth / biscuit-java

Java implementation of the Biscuit authentication and authorization token
https://biscuitsec.org/
Apache License 2.0
28 stars 13 forks source link

add support for the root key id #53

Closed Geal closed 1 year ago

Geal commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

Let us mark other methods deprecated.