java - Google Data Loss Prevention API -


does google data loss prevention api support .pdf or .docx? trying reduction on *.pdf file in java hide sensitive data.

many thanks! emi

currently, google data loss prevention api supports string of text.

sample input:

 {     "items":     [       {         "value": "my phone number (123) 456-7890",         "type": "text/plain"       }     ],     "replaceconfigs":     [       {         "replacewith": "[redacted phone number]",         "infotype":         {           "name": "phone_number"         }       }     ]   } 

url: post https://dlp.googleapis.com/v2beta1/content:redact

sample output:

 {    "items": [     {      "type": "text/plain",      "value": "my phone number [redacted phone number]"     }    ]   } 

Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -