ServiceAuthInterceptor
instead@Deprecated public class ServiceJWTInterceptor extends Object implements java.util.function.Function<Message<JsonObject>,Future<Message<JsonObject>>>
Constructor and Description |
---|
ServiceJWTInterceptor()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
ServiceJWTInterceptor |
addAuthority(String authority)
Deprecated.
Add a single authority to the authorities set.
|
Future<Message<JsonObject>> |
apply(Message<JsonObject> msg)
Deprecated.
|
ServiceJWTInterceptor |
clearAuthorities()
Deprecated.
Clear the current set of authorities.
|
ServiceJWTInterceptor |
setAuthorities(Set<String> authorities)
Deprecated.
Set the required authorities for the service, once a JWT is validated it will be
queried for these authorities.
|
ServiceJWTInterceptor |
setJwtAuth(JWTAuth jwtAuth)
Deprecated.
Set a JWT auth that will verify all requests before the service is invoked.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
andThen, compose, identity
public ServiceJWTInterceptor setJwtAuth(JWTAuth jwtAuth)
jwtAuth
- a JWT authpublic ServiceJWTInterceptor setAuthorities(Set<String> authorities)
authorities
- set of authoritiespublic ServiceJWTInterceptor addAuthority(String authority)
authority
- authoritypublic ServiceJWTInterceptor clearAuthorities()
public Future<Message<JsonObject>> apply(Message<JsonObject> msg)
apply
in interface java.util.function.Function<Message<JsonObject>,Future<Message<JsonObject>>>
Copyright © 2023 Eclipse. All rights reserved.