ReadonlyauthThe auth provider for the OpenTDF instance.
Default options for creating TDF objects.
Default options for reading TDF objects.
ReadonlydpopIf DPoP is enabled for this instance.
ReadonlydpopThe DPoP keys for this instance, if any.
ReadonlyplatformThe platform URL
ReadonlypolicyThe policy service endpoint
Readonlytdf3The TDF3 client for encrypting and decrypting ZTDF files.
Closes the OpenTDF instance and releases any resources.
Creates a new collection object, which can be used to encrypt a series of data with the same policy.
The main OpenTDF class that provides methods for creating and reading TDF files. It supports both NanoTDF and ZTDF formats. It can be used to create new TDF files and read existing ones. This class is the entry point for using the OpenTDF SDK. It requires an authentication provider to be passed in the constructor. It also requires a platform URL to be set, which is used to fetch key access servers and policies.
Example