Class PolymorphicAuthDynamicFeature<T extends Principal>

java.lang.Object
io.dropwizard.auth.PolymorphicAuthDynamicFeature<T>
All Implemented Interfaces:
jakarta.ws.rs.container.DynamicFeature, jakarta.ws.rs.core.Feature

public class PolymorphicAuthDynamicFeature<T extends Principal> extends Object implements jakarta.ws.rs.core.Feature, jakarta.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 Details

    • PolymorphicAuthDynamicFeature

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

    • configure

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

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