Interface HttpSecurityPolicy
-
- All Known Implementing Classes:
AuthenticatedHttpSecurityPolicy,DenySecurityPolicy,PathMatchingHttpSecurityPolicy,PermitSecurityPolicy,RolesAllowedHttpSecurityPolicy
public interface HttpSecurityPolicyAn HTTP Security policy, that controls which requests are allowed to proceed. CDI beans implementing this interface are invoked on every request unless they definename(). The policy withname()can then be referenced in the application.properties path matching rules, which allows this policy to be applied only to specific requests.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceHttpSecurityPolicy.AuthorizationRequestContextA context object that can be used to run blocking tasksstatic classHttpSecurityPolicy.CheckResultThe results of a permission check
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description io.smallrye.mutiny.Uni<HttpSecurityPolicy.CheckResult>checkPermission(io.vertx.ext.web.RoutingContext request, io.smallrye.mutiny.Uni<io.quarkus.security.identity.SecurityIdentity> identity, HttpSecurityPolicy.AuthorizationRequestContext requestContext)default Stringname()HTTP Security policy name referenced in the application.properties path matching rules, which allows this policy to be applied to specific requests.
-
-
-
Method Detail
-
checkPermission
io.smallrye.mutiny.Uni<HttpSecurityPolicy.CheckResult> checkPermission(io.vertx.ext.web.RoutingContext request, io.smallrye.mutiny.Uni<io.quarkus.security.identity.SecurityIdentity> identity, HttpSecurityPolicy.AuthorizationRequestContext requestContext)
-
name
default String name()
HTTP Security policy name referenced in the application.properties path matching rules, which allows this policy to be applied to specific requests. The name must not be blank. When the name isnull, policy will be applied to every request.- Returns:
- policy name
-
-