Simple Java test example to call REST api using JWT

I am doing a small poc on zoom usage in customised Java application. On calling REST api, it seems token is required for authorization through JWT.

  1. I am not sure how to create JWT token in Java

 

  1. How this token will be passed while calling REST api using Java.

 

Is there any example tutorial.

Please help.

  1. Please refer to https://jwt.io to create a JWT Token.
  2. Please refer to https://zoom.github.io/api
    You can pass the token to the API either in the HTTP Authorization Header using ‘Bearer’ or via Query Parameter in your API call as ‘access_token’.
    Header
    Authorization: Bearer

Query Parameter: ?access_token=