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