title: Json Web Token example for Java
body: <p>Is there a sample program in Java of HPW to create header, claim set for JWT (service account ) so that I get the Access token? </p>
  
  <p>The following URL looks close:<br>
  <a href="https://developers.google.com/accounts/docs/OAuth2ServiceAccount#libraries">https://developers.google.com/accounts/docs/OAuth2ServiceAccount#libraries</a><br>
  But I was looking for any sample program to start with.</p>
  
  <p>Does anyone have any help links?</p>