@Experimental("Remains to be determined if this is the best possible API for users to configure security of serialized fields")
@Retention(RUNTIME)
@Target({METHOD,FIELD})
public @interface SecureField
Annotation that can be used on fields (or getters) of POJOs returned by RESTEasy Reactive Resource methods, to signal that
then return type when serialized to JSON,
will not include fields whose security requirements match the current user's security scope.
Warning: This annotation does not work when placed on a JAX-RS method that returns Response
.
Users that wish to use the feature and have the ability to configure the response of the JAX-RS method are advised to
use RestResponse
.