opentdf / java-sdk

OpenTDF Java SDK
BSD 3-Clause Clear License
0 stars 1 forks source link

The TDF interface is more complicated than it needs to be #127

Open mkleene opened 1 month ago

mkleene commented 1 month ago

Currently the TDF interface requires the client to pass the services that it needs, like this:

var reader = new TDF().loadTDF(in, sdk.getServices().kas());

new TDF().createTDF(in, out, tdfConfig, sdk.getServices().kas());

In the golang SDK operations on TDFs take in the SDK as a parameter so we don't need to pass in the various services required.

We should refactor the java SDK to work more like that so that users don't have to do deal with details they don't care about.