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