Package io.dropwizard.auth
Class PolymorphicAuthDynamicFeature<T extends Principal>
- java.lang.Object
-
- io.dropwizard.auth.PolymorphicAuthDynamicFeature<T>
-
- All Implemented Interfaces:
javax.ws.rs.container.DynamicFeature
,javax.ws.rs.core.Feature
public class PolymorphicAuthDynamicFeature<T extends Principal> extends Object implements javax.ws.rs.core.Feature, javax.ws.rs.container.DynamicFeature
ADynamicFeature
that registers the provided auth filters to resource methods annotated with theAuth
according to the type of the annotated method parameter.
-
-
Constructor Summary
Constructors Constructor Description PolymorphicAuthDynamicFeature(Map<Class<? extends T>,javax.ws.rs.container.ContainerRequestFilter> authFilterMap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configure(javax.ws.rs.container.ResourceInfo resourceInfo, javax.ws.rs.core.FeatureContext context)
boolean
configure(javax.ws.rs.core.FeatureContext context)
-
-
-
Method Detail
-
configure
public void configure(javax.ws.rs.container.ResourceInfo resourceInfo, javax.ws.rs.core.FeatureContext context)
- Specified by:
configure
in interfacejavax.ws.rs.container.DynamicFeature
-
configure
public boolean configure(javax.ws.rs.core.FeatureContext context)
- Specified by:
configure
in interfacejavax.ws.rs.core.Feature
-
-