Class PolymorphicAuthDynamicFeature<T extends Principal>

  • All Implemented Interfaces:
    javax.ws.rs.container.DynamicFeature

    public class PolymorphicAuthDynamicFeature<T extends Principal>
    extends Object
    implements javax.ws.rs.container.DynamicFeature
    A DynamicFeature that registers the provided auth filters to resource methods annotated with the Auth according to the type of the annotated method parameter.
    • Constructor Detail

      • PolymorphicAuthDynamicFeature

        public PolymorphicAuthDynamicFeature​(Map<Class<? extends T>,​javax.ws.rs.container.ContainerRequestFilter> authFilterMap)
    • Method Detail

      • configure

        public void configure​(javax.ws.rs.container.ResourceInfo resourceInfo,
                              javax.ws.rs.core.FeatureContext context)
        Specified by:
        configure in interface javax.ws.rs.container.DynamicFeature