Create new NanoTDF Dataset Client
The Ephemeral Key Pair can either be provided or will be generate when fetching the entity object. Once set it cannot be changed. If a new ephemeral key is desired it a new client should be initialized. There is no performance impact for creating a new client IFF the ephemeral key pair is provided.
Readonly
authPrivate
Optional
cachedPrivate
Optional
cachedReadonly
dpopPrivate
ecdsaProtected
ephemeralProtected
Optional
ivOptional
kasProtected
kasPrivate
keyPrivate
maxProtected
requestPrivate
Optional
symmetricPrivate
Optional
unwrappedStatic
Readonly
INITIAL_Static
Readonly
IV_Static
Readonly
KAS_Static
Readonly
KEY_Static
Readonly
NTDF_Static
Readonly
SDK_Encrypt data
Pass a string, TypedArray, or ArrayBuffer data and get a promise which resolves ciphertext
to decrypt
Optional
options: EncryptOptionsExplicitly get a new Entity Object using the supplied EntityAttributeService.
This method is expected to be called at least once per encrypt/decrypt cycle. If the entityObject is expired then this will need to be called again.
the ephemeralKeyPair must be set in the constructor if desired to use here. If this is wished to be changed then a new client should be initialized.
key pair is generated when the entity object is fetched IFF the ephemeralKeyPair is not set. This will either be set on the first call or passed in the constructor.
Rewrap key
the full header for the nanotdf
key access server's rewrap endpoint
nanotdf container version
version of the client, as SemVer
the fetchEntityObject
method must be called prior to
Generated using TypeDoc
NanoTDF Dataset SDK Client
Example