auth0 / java-jwt

Java implementation of JSON Web Token (JWT)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Does the lib have a feature to create jwt token from pem file?

Elvintest opened this issue · comments

Checklist

  • I have looked into the Readme and Examples, and have not found a suitable solution or answer.
  • I have looked into the API documentation and have not found a suitable solution or answer.
  • I have searched the issues and have not found a suitable solution or answer.
  • I have searched the Auth0 Community forums and have not found a suitable solution or answer.
  • I agree to the terms within the Auth0 Code of Conduct.

Describe the problem you'd like to have solved

the lib accepts special objects for generating token but not bytes or string seq, it creates complexity.

Describe the ideal solution

I have an encrypted private key in pem file started with -----BEGIN ENCRYPTED PRIVATE KEY----- and also public key in pem file. I need to generate jwt based on this key, if the lib provides such feture it would be great

Alternatives and current workarounds

No response

Additional context

No response

👋 hi @Elvintest, no, this library does not support creating a JWT from a pem file. See #214 for additional info and possible solutions, as well as #371. Thanks!