Class SecurityEntityFilteringFeature

  • All Implemented Interfaces:
    javax.ws.rs.core.Feature

    public final class SecurityEntityFilteringFeature
    extends java.lang.Object
    implements javax.ws.rs.core.Feature
    Feature used to add support for Java Security annotations (javax.annotation.security) for Entity Data Filtering feature.

    Supported annotations are:

    • PermitAll
    • RolesAllowed
    • DenyAll

    It is sufficient to annotate only property accessors of an entity without annotating resource method / resource class although it is not recommended.

    Note: This feature also registers the EntityFilteringFeature.
    See Also:
    EntityFilteringFeature
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean configure​(javax.ws.rs.core.FeatureContext context)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SecurityEntityFilteringFeature

        public SecurityEntityFilteringFeature()
    • Method Detail

      • configure

        public boolean configure​(javax.ws.rs.core.FeatureContext context)
        Specified by:
        configure in interface javax.ws.rs.core.Feature