Readonly
authThe auth provider for the OpenTDF instance.
Default options for creating TDF objects.
Default options for reading TDF objects.
Readonly
dpopIf DPoP is enabled for this instance.
Readonly
dpopThe DPoP keys for this instance, if any.
Readonly
platformThe platform URL
Readonly
policyThe policy service endpoint
Readonly
tdf3The 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