Class JwtServerInterceptor

  • All Implemented Interfaces:
    io.grpc.ServerInterceptor

    public class JwtServerInterceptor
    extends Object
    implements io.grpc.ServerInterceptor
    JSON Web Token credentials validator implementation
    • 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 interface io.grpc.ServerInterceptor
      • prepareJwtVerifier

        public static com.auth0.jwt.JWTVerifier prepareJwtVerifier​(JwtAlgorithm algorithmName,
                                                                   String secret,
                                                                   String issuer,
                                                                   String subject)