Class EagerSecurityInterceptorStorage
java.lang.Object
io.quarkus.vertx.http.runtime.security.EagerSecurityInterceptorStorage
Security interceptors run for desired annotated methods prior to security checks.
Interceptors should only be run when proactive security is disabled, because
they must be run before request is authenticated.
These interceptors are very important when SecurityChecks are not run
with CDI interceptors, because they provide only way to link request to invoked method prior to checks.
-
Constructor Summary
ConstructorsConstructorDescriptionEagerSecurityInterceptorStorage(Map<MethodDescription, Consumer<io.vertx.ext.web.RoutingContext>> methodToInterceptor, Map<String, Consumer<io.vertx.ext.web.RoutingContext>> classNameToInterceptor) -
Method Summary
Modifier and TypeMethodDescriptionConsumer<io.vertx.ext.web.RoutingContext>getClassInterceptor(String className) This method should be invoked prior to any security check is run if proactive auth is disabled.Consumer<io.vertx.ext.web.RoutingContext>getInterceptor(MethodDescription endpoint) This method should be invoked prior to any security check is run if proactive auth is disabled.
-
Constructor Details
-
EagerSecurityInterceptorStorage
-
-
Method Details
-
getInterceptor
This method should be invoked prior to any security check is run if proactive auth is disabled.- Parameters:
endpoint- with security annotation- Returns:
- return security interceptor
-
getClassInterceptor
This method should be invoked prior to any security check is run if proactive auth is disabled. Class-level security interceptors are applied when security is applied once per class, for example per HTTP upgrade.- Parameters:
className- with security annotation- Returns:
- return class security interceptor
-