Package io.vertx.serviceproxy
Interface AuthorizationInterceptor
-
- All Superinterfaces:
ServiceInterceptor
public interface AuthorizationInterceptor extends ServiceInterceptor
Create an event bus service interceptor that will provide an authorization check
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description AuthorizationInterceptor
addAuthorization(Authorization authorization)
Add a single authority to the authorities set.static AuthorizationInterceptor
create(AuthorizationProvider authorizationProvider)
AuthorizationInterceptor
setAuthorizations(Set<Authorization> authorizations)
Set the required authorities for the service, once a JWT is validated it will be queried for these authorities.-
Methods inherited from interface io.vertx.serviceproxy.ServiceInterceptor
intercept
-
-
-
-
Method Detail
-
create
static AuthorizationInterceptor create(AuthorizationProvider authorizationProvider)
-
setAuthorizations
AuthorizationInterceptor setAuthorizations(Set<Authorization> authorizations)
Set the required authorities for the service, once a JWT is validated it will be queried for these authorities. If authorities are missing a error 403 is returned.- Parameters:
authorizations
- set of authorities- Returns:
- self
-
addAuthorization
AuthorizationInterceptor addAuthorization(Authorization authorization)
Add a single authority to the authorities set.- Parameters:
authorization
- authority- Returns:
- self
-
-