Category Archives: Java

Log4j2: How to Mask Logs Personal/Confidential/SPI Information


You can configure Log4j2 LogEventConverter plugin for masking personal/confidential/SPI data. For example here we are masking credit card number, SSN and CVV of log statements. Continue reading

Advertisements
Posted in Java, Java Logging, LOG4J2 | Tagged , , , , , , , , , , , , , , | 3 Comments

How to MASK XML Confidential/Personal Data : JAVA


Here you will see all steps to mask confidential/ information like credit card, CVV, Exp date,  SSN, ppassword etc. So that it will print in mask form as ****** so that anauthrize use will not misuse of others information. Continue reading

Posted in Java, JSON, Mask | Tagged , , , , , , , , , , , , , | 2 Comments

YAML and JAVA Configuration


Below are Tools which support YAML for JAVA API’s. Here I will focus only on SnakeYAML which widely used by industry. Continue reading

Posted in Java, JSON, YAML | Tagged , , , , , | Leave a comment

JAVA : How to convert YAML Documents to JSON List?


Here is code to convert YAML documents to JSON objects by Jackson and snakeyml apis. Jackson also support YAML support. Continue reading

Posted in Java, JSON, Uncategorized, YAML | Tagged , , , , , | Leave a comment

JAVA : How to convert YAML To JSON?


Here is code to convert YAML document to JSON by Jackson and snakeyml apis. Jackson also support YAML support. Continue reading

Posted in Java, JSON, Uncategorized, YAML | Tagged , , , , , | Leave a comment

Difference between YAML and JSON


Diffrence between YAML and JSON.
YAML VS JSON
JSON VS YAML Continue reading

Posted in Java, JSON, Uncategorized, YAML | Tagged , , , , , , , | Leave a comment

YAML Introduction


YAML(Ain’t Markup Language) is a human friendly , cross language, unicode based data serialization format designed for interaction with all programming languages. yAML area of uses and Goals. Continue reading

Image | Posted on by | Tagged , , , , , , , | Leave a comment

YAML Syntax


By using below example of YAML file content will explain about YAML syntax so that easily understandable. Documents, comments , list and dictionary values representation in YAML also case of special characters. Continue reading

Posted in Java, YAML | Tagged , , , , , , , | 3 Comments

YAML Supporting Language, Framework and Tools


YAML Supports so many languages and frameworks below are YAML Supporting languages, frameworks and respective tools : Continue reading

Posted in Java, YAML | Tagged , , , , , | Leave a comment

How to Mask JSON Confidential/Personal Information in logs :JAVA


Here you will see all steps to mask confidential/ information like credit card, CVV, Exp date,  SSN, password etc. So that it will print in mask form as ****** so that unauthorize use will not misuse of others information.

Here using Google GSON and GsonBuilder converting Java object to JSON and again converting JSON to Java Object.

By using Java refelection api’s replacing SPI fields data with *******. Continue reading

Posted in Example, GSON, Java, Mask | Tagged , , , , , , , , , , , , | 3 Comments