Class EagerSecurityInterceptorStorage
- java.lang.Object
-
- io.quarkus.vertx.http.runtime.security.EagerSecurityInterceptorStorage
-
public class EagerSecurityInterceptorStorage extends Object
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
SecurityCheck
s are not run with CDI interceptors, because they provide only way to link request to invoked method prior to checks.
-
-
Constructor Summary
Constructors Constructor Description EagerSecurityInterceptorStorage(Map<MethodDescription,Consumer<io.vertx.ext.web.RoutingContext>> methodToInterceptor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 Detail
-
EagerSecurityInterceptorStorage
EagerSecurityInterceptorStorage(Map<MethodDescription,Consumer<io.vertx.ext.web.RoutingContext>> methodToInterceptor)
-
-
Method Detail
-
getInterceptor
public 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.- Parameters:
endpoint
- with security annotation- Returns:
- return security interceptor
-
-