Skip to main content

io.enterpriseai.resources.TokenizationClient

Source: sdks/java/enterprise-ai-java/src/main/java/io/enterpriseai/resources/TokenizationClient.java. Back to the Java SDK reference index.

note

This page is generated by tools/docs/gen_sdk_reference.py from the SDK sources and the OpenAPI text folders. Do not edit it by hand: change the source and regenerate.

Class TokenizationClient​

Reversible tokenization.

Constructor TokenizationClient​

TokenizationClient(Transport transport)

Creates the client on the shared transport; EnterpriseAIClient builds it and exposes it through the accessor of the same name.

NameTypeDefaultRequiredDescription
transportTransportyesTransport shared by the sub-clients of one client.

TokenizationClient.detokenize​

JsonNode detokenize(Object body)

Detokenize values. Returns the original values of tokens given in tokens or found in text.

Route: /v1/tokenization/detokenize (POST).

NameTypeDefaultRequiredDescription
bodyObjectyesTokens or text holding tokens, and purpose.

Returns: JsonNode. Decoded JSON answer of the operation "Detokenize values".

Raises: the typed errors of the transport (Errors).

TokenizationClient.detokenize​

JsonNode detokenize(Object body, RequestOptions options)

Detokenize values. Returns the original values of tokens given in tokens or found in text.

Route: /v1/tokenization/detokenize (POST).

NameTypeDefaultRequiredDescription
bodyObjectyesTokens or text holding tokens, and purpose.
optionsRequestOptionsyesPer call options (idempotency key, traceparent, headers, abort signal).

Returns: JsonNode. Decoded JSON answer of the operation "Detokenize values".

Raises: the typed errors of the transport (Errors).

TokenizationClient.tokenize​

JsonNode tokenize(Object body)

Tokenize values. Replaces sensitive values by deterministic tokens tok_<type>_<hex> of the tenant (the same value always gives the same token), the values being stored encrypted in the vault. With values, returns tokens; with text, detects the entities and returns the tokenized text, findings and classification. One of the two is required (400 invalid_request). Open to any member of the tenant. Writes the audit event tokenization.tokenize (count only).

Route: /v1/tokenization/tokenize (POST).

NameTypeDefaultRequiredDescription
bodyObjectyesValues or text to tokenize.

Returns: JsonNode. Decoded JSON answer of the operation "Tokenize values".

Raises: the typed errors of the transport (Errors).

TokenizationClient.tokenize​

JsonNode tokenize(Object body, RequestOptions options)

Tokenize values. Replaces sensitive values by deterministic tokens tok_<type>_<hex> of the tenant (the same value always gives the same token), the values being stored encrypted in the vault. With values, returns tokens; with text, detects the entities and returns the tokenized text, findings and classification. One of the two is required (400 invalid_request). Open to any member of the tenant. Writes the audit event tokenization.tokenize (count only).

Route: /v1/tokenization/tokenize (POST).

NameTypeDefaultRequiredDescription
bodyObjectyesValues or text to tokenize.
optionsRequestOptionsyesPer call options (idempotency key, traceparent, headers, abort signal).

Returns: JsonNode. Decoded JSON answer of the operation "Tokenize values".

Raises: the typed errors of the transport (Errors).