Class JwtServerInterceptor
java.lang.Object
org.apache.camel.component.grpc.auth.jwt.JwtServerInterceptor
- All Implemented Interfaces:
io.grpc.ServerInterceptor
JSON Web Token credentials validator implementation
-
Constructor Summary
ConstructorDescriptionJwtServerInterceptor
(JwtAlgorithm algorithm, String secret, String issuer, String subject) -
Method Summary
Modifier and TypeMethodDescription<ReqT,
RespT>
io.grpc.ServerCall.Listener<ReqT>interceptCall
(io.grpc.ServerCall<ReqT, RespT> call, io.grpc.Metadata metadata, io.grpc.ServerCallHandler<ReqT, RespT> serverCallHandler) static com.auth0.jwt.JWTVerifier
prepareJwtVerifier
(JwtAlgorithm algorithmName, String secret, String issuer, String subject)
-
Constructor Details
-
JwtServerInterceptor
-
-
Method Details
-
interceptCall
public <ReqT,RespT> io.grpc.ServerCall.Listener<ReqT> interceptCall(io.grpc.ServerCall<ReqT, RespT> call, io.grpc.Metadata metadata, io.grpc.ServerCallHandler<ReqT, RespT> serverCallHandler) - Specified by:
interceptCall
in interfaceio.grpc.ServerInterceptor
-
prepareJwtVerifier
public static com.auth0.jwt.JWTVerifier prepareJwtVerifier(JwtAlgorithm algorithmName, String secret, String issuer, String subject)
-