jax-rs web service: how to hide some entity fields and use SSL

后端 未结 1 1520
梦谈多话
梦谈多话 2021-01-27 08:34

Recently I asked some questions here about web services

How to secure a database using web services?

Glassfish: deploy of multiple applications, some of them wi

相关标签:
1条回答
  • 2021-01-27 09:04

    Since you're using Jersey you should have Jackson along with that. Jackson helps working with entity -> JSON and JSON -> entity parsing.

    You're looking for an annotation called

    @JsonIgnore
    

    And you'll want to put that on the 'getter' method of the member you wish to obscure from the output.

    Source: http://jackson.codehaus.org/

    0 讨论(0)
提交回复
热议问题