Package io.quarkus.vertx.http.deployment
Class EagerSecurityInterceptorBindingBuildItem
java.lang.Object
io.quarkus.builder.item.BuildItem
io.quarkus.builder.item.MultiBuildItem
io.quarkus.vertx.http.deployment.EagerSecurityInterceptorBindingBuildItem
public final class EagerSecurityInterceptorBindingBuildItem
extends io.quarkus.builder.item.MultiBuildItem
Provides a way for extensions to register eager security interceptor.
For example, the Vert.x HTTP extension registers
HttpAuthenticationMechanism
and an interceptor that sets annotation value ('@HttpAuthenticationMechanism("basic") => 'basic') as routing context
attribute.
With disabled proactive authentication, these interceptors are guaranteed to run before any other security code
of supported extensions (currently RESTEasy Classic and RESTEasy Reactive).-
Constructor Summary
ConstructorsConstructorDescriptionEagerSecurityInterceptorBindingBuildItem(Function<String, Consumer<io.vertx.ext.web.RoutingContext>> interceptorCreator, Function<org.jboss.jandex.AnnotationInstance, String> bindingValueExtractor, boolean requiresSecurityCheck, org.jboss.jandex.DotName... interceptorBindings) EagerSecurityInterceptorBindingBuildItem(Function<String, Consumer<io.vertx.ext.web.RoutingContext>> interceptorCreator, Map<String, String> bindingToValue, org.jboss.jandex.DotName... interceptorBindings) EagerSecurityInterceptorBindingBuildItem(Function<String, Consumer<io.vertx.ext.web.RoutingContext>> interceptorCreator, org.jboss.jandex.DotName... interceptorBindings) -
Method Summary
Modifier and TypeMethodDescriptionorg.jboss.jandex.DotName[]getBindingValue(org.jboss.jandex.AnnotationInstance annotationInstance, org.jboss.jandex.DotName annotation, org.jboss.jandex.AnnotationTarget annotationTarget) (package private) booleanstatic StringtoTargetName(org.jboss.jandex.AnnotationTarget target)
-
Constructor Details
-
EagerSecurityInterceptorBindingBuildItem
public EagerSecurityInterceptorBindingBuildItem(Function<String, Consumer<io.vertx.ext.web.RoutingContext>> interceptorCreator, org.jboss.jandex.DotName... interceptorBindings) - Parameters:
interceptorCreator- accepts 'value' attribute ofinterceptorBindinginstances and creates interceptorinterceptorBindings- annotation names, 'value' attribute of annotation instances will be passed to the creator
-
EagerSecurityInterceptorBindingBuildItem
-
EagerSecurityInterceptorBindingBuildItem
-
-
Method Details
-
getAnnotationBindings
public org.jboss.jandex.DotName[] getAnnotationBindings() -
getInterceptorCreator
-
getBindingValue
public String getBindingValue(org.jboss.jandex.AnnotationInstance annotationInstance, org.jboss.jandex.DotName annotation, org.jboss.jandex.AnnotationTarget annotationTarget) -
toTargetName
-
requiresSecurityCheck
boolean requiresSecurityCheck()
-