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.
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.
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
transport | Transport | yes | Transport 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).
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
body | Object | yes | Tokens 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).
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
body | Object | yes | Tokens or text holding tokens, and purpose. | |
options | RequestOptions | yes | Per 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).
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
body | Object | yes | Values 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).
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
body | Object | yes | Values or text to tokenize. | |
options | RequestOptions | yes | Per 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).