Using the following @NodeEntity
@NodeEntity
public class Person extends BasePersistenceObject {
@GraphId
Long id;
String fullName;
@Indexed(unique=true)
String email;
String passwordHash = null;
@JsonIgnore
public String getPasswordHash() {
return passwordHash;
}
...
}
I'm still seeing the passwordHash in the JSON Response from the following controller method:
@RequestMapping(value = "/login", method=RequestMethod.POST)
public @ResponseBody Person login(@RequestBody Map<String, String> credentials, HttpServletRequest request) throws AuthorizationException {
String email = credentials.get("email");
String password = credentials.get("password");
String ipAddress = request.getRemoteAddr();
return authService.authenticate(email, password, ipAddress);
}