keypair generated for signing. Optional, will be generated by sdk if not passed
Key Access Server url
After logging in to browser OIDC interface user receives fresh token that needed by SDK for auth needs
JWT from external authority (eg Google)
Endpoint of authentication service
Optional ReadonlyallowedList of allowed KASes to connect to for rewrap requests.
Defaults to [this.kasEndpoint].
Optional ReadonlyauthReadonlyclientOptional ReadonlyclientReadonlycryptoReadonlydpopReadonlydpopSession binding keys. Used for DPoP and signed request bodies.
Optional ReadonlyeasOptional ReadonlyfileReadonlyfulfillableList of obligation value FQNs in platform policy that can be fulfilled by the PEP utilizing this client (i.e. 'https://example.com/obl/drm/value/mask'). Defaults to '[]'. Currently set per Client and not per TDF.
ReadonlykasDefault kas endpoint, if present. Required for encrypt.
ReadonlykasOptional ReadonlyplatformURL of the platform, required to fetch list of allowed KASes when allowedKases is empty
ReadonlypolicyPolicy service endpoint, if present. Required for autoconfiguration with ABAC.
Optional ReadonlyreaderNecessary only for testing. A dependency-injection approach should be preferred, but that is difficult currently
Decrypt TDF ciphertext into plaintext. One of the core operations of the Virtru SDK.
a https://nodejs.org/api/stream.html#stream_class_stream_readable|Readable stream containing the decrypted plaintext.
Encrypt plaintext into TDF ciphertext. One of the core operations of the Virtru SDK.
Optionalopts: EncryptParamsTest only
a https://nodejs.org/api/stream.html#stream_class_stream_readable|Readable a new stream containing the TDF ciphertext
Get the unique policyId associated with TDF ciphertext. Useful for managing authorization policies of encrypted data.
The policyId is embedded in the ciphertext so this is a local operation.
Required. TDF data stream, generated using DecryptParamsBuilder#build|DecryptParamsBuilder's build().
An abstraction for protecting and accessing data using TDF3 services.