public class ServiceAuthInterceptor extends Object implements Function<Message<JsonObject>,Future<Message<JsonObject>>>
| Constructor and Description |
|---|
ServiceAuthInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
ServiceAuthInterceptor |
addAuthorization(io.vertx.ext.auth.authorization.Authorization authorization)
Add a single authority to the authorities set.
|
Future<Message<JsonObject>> |
apply(Message<JsonObject> msg) |
ServiceAuthInterceptor |
setAuthenticationProvider(io.vertx.ext.auth.authentication.AuthenticationProvider provider)
Set an authentication provider that will verify all requests before the service is invoked.
|
ServiceAuthInterceptor |
setAuthorizationProvider(io.vertx.ext.auth.authorization.AuthorizationProvider provider) |
ServiceAuthInterceptor |
setAuthorizations(Set<io.vertx.ext.auth.authorization.Authorization> authorizations)
Set the required authorities for the service, once a JWT is validated it will be
queried for these authorities.
|
public ServiceAuthInterceptor setAuthenticationProvider(io.vertx.ext.auth.authentication.AuthenticationProvider provider)
provider - an authentication providerpublic ServiceAuthInterceptor setAuthorizationProvider(io.vertx.ext.auth.authorization.AuthorizationProvider provider)
public ServiceAuthInterceptor setAuthorizations(Set<io.vertx.ext.auth.authorization.Authorization> authorizations)
authorizations - set of authoritiespublic ServiceAuthInterceptor addAuthorization(io.vertx.ext.auth.authorization.Authorization authorization)
authorization - authoritypublic Future<Message<JsonObject>> apply(Message<JsonObject> msg)
apply in interface Function<Message<JsonObject>,Future<Message<JsonObject>>>Copyright © 2021 Eclipse. All rights reserved.