Class JwtServerInterceptor
- java.lang.Object
-
- org.apache.camel.component.grpc.auth.jwt.JwtServerInterceptor
-
- All Implemented Interfaces:
io.grpc.ServerInterceptor
public class JwtServerInterceptor extends Object implements io.grpc.ServerInterceptor
JSON Web Token credentials validator implementation
-
-
Constructor Summary
Constructors Constructor Description JwtServerInterceptor(JwtAlgorithm algorithm, String secret, String issuer, String subject)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <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 Detail
-
JwtServerInterceptor
public JwtServerInterceptor(JwtAlgorithm algorithm, String secret, String issuer, String subject)
-
-
Method Detail
-
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)
-
-