Skip to main content

Redact | Java SDK

The Pangea Redact API helps developers limit the sprawl of sensitive information by performing redaction using defined rules.

Redact

redactText(RedactTextRequest request)

Redact sensitive information from provided text.

required parameters

RedactTextRequest

redact request with text and optional parameters

Response Object

RedactTextResponse

RedactTextResponse

 		RedactTextResponse response = client.redactText(
			new RedactTextRequest.RedactTextRequestBuilder("Jenny Jenny... 415-867-5309").build()
		);

Redact structured

redactStructured(RedactStructuredRequest request)

Redact sensitive information from structured data (e.g., JSON).

required parameters

RedactStructuredRequest

redact structured request with object data and optional parameters

Response Object

RedactStructuredResponse

RedactStructuredResponse

 Map<String, Object> data = new LinkedHashMap<String, Object>();

 data.put("Name", "Jenny Jenny");
 data.put("Phone", "This is its number: 415-867-5309");

	RedactStructuredResponse response = client.redactStructured(
		new RedactStructuredRequest.RedactStructuredRequestBuilder(data)
			.setDebug(true)
			.setJsonp(new String[] { "Phone", "Name" })
			.setRules(new String[] { "PHONE_NUMBER" })
			.build()
	);

Unredact

unredact(UnredactRequest request)

Decrypt or unredact fpe redactions

required parameters

UnredactRequest

Unredact request with data and fpe context

Response Object

UnredactResponse

UnredactResponse