Generate jwt token with private key java. So, what I am doing is, importing private key from .