@Singleton public class HttpAuthorizer extends Object
Modifier and Type | Field and Description |
---|---|
(package private) HttpAuthenticator |
httpAuthenticator |
(package private) io.quarkus.security.identity.IdentityProviderManager |
identityProviderManager |
(package private) List<HttpSecurityPolicy> |
policies |
Constructor and Description |
---|
HttpAuthorizer(javax.enterprise.inject.Instance<HttpSecurityPolicy> installedPolicies) |
Modifier and Type | Method and Description |
---|---|
void |
checkPermission(io.vertx.ext.web.RoutingContext routingContext)
Checks that the request is allowed to proceed.
|
@Inject HttpAuthenticator httpAuthenticator
@Inject io.quarkus.security.identity.IdentityProviderManager identityProviderManager
final List<HttpSecurityPolicy> policies
@Inject HttpAuthorizer(javax.enterprise.inject.Instance<HttpSecurityPolicy> installedPolicies)
public void checkPermission(io.vertx.ext.web.RoutingContext routingContext)
RoutingContext.next()
will
be invoked, if not appropriate action will be taken to either report the failure or attempt authentication.Copyright © 2020 JBoss by Red Hat. All rights reserved.