Class TDF3Client

Hierarchy

  • TDF3Client

Constructors

Properties

allowedKases: OriginAllowList

List of allowed KASes to connect to for rewrap requests. Defaults to [this.kasEndpoint].

authProvider?: AuthProvider
clientConfig: ClientConfig
clientId?: string
cryptoService: CryptoService
dpopEnabled: boolean
dpopKeys: Promise<CryptoKeyPair>

Session binding keys. Used for DPoP and signed request bodies.

easEndpoint?: string
fileStreamServiceWorker?: string
kasEndpoint: string

Default kas endpoint, if present. Required for encrypt.

kasKeys: Record<string, Promise<KasPublicKeyInfo>> = {}
policyEndpoint: string

Policy service endpoint, if present. Required for autoconfiguration with ABAC.

readerUrl?: string

Methods

  • 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.

    Parameters

    • source: {
          source: DecryptSource;
      }

      Required. TDF data stream, generated using DecryptParamsBuilder#build|DecryptParamsBuilder's build().

      • source: DecryptSource

    Returns Promise<any>

    • the unique policyId, which can be used for tracking purposes or policy management operations.

    See

    DecryptParamsBuilder

  • Parameters

    • __namedParameters: {
          source: DecryptSource;
      }
      • source: DecryptSource

    Returns Promise<{
        centralDirectory: CentralDirectory[];
        manifest: Manifest;
        zipReader: ZipReader;
    }>

Generated using TypeDoc