cedar-policy / cedar-java

Java bindings for the Cedar language
https://www.cedarpolicy.com
Apache License 2.0
42 stars 19 forks source link

Removing Slice parameter from authorization APIs #164

Closed mark-creamer-amazon closed 4 months ago

mark-creamer-amazon commented 4 months ago

https://github.com/cedar-policy/cedar-java/issues/40

Removing the Slice parameter from the isAuthorized and isAuthorizedPartial method signatures, replacing with a Set<Entity> and a new object PolicySet which mirrors Rust's PolicySet (however without the convenient helper methods currently).

We cannot get rid of the Slice object entirely until the AuthorizationCall struct in cedar-policy/src/ffi no longer specifies the slice field. See https://github.com/cedar-policy/cedar/issues/757