I have a pojo which is mapped to a json response. Below is the pojo class:
@Data
public class User{
private String firstName;
private String middleName;
private String lastName;
private String ssn;
private Address address
}
My requirement is to encrypt individual field like ssn in log and decrypt while calling another rest api. How can i do that?