auth0 / java-jwt

Java implementation of JSON Web Token (JWT)
MIT License
5.84k stars 921 forks source link

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

Closed Elvintest closed 1 year ago

Elvintest commented 1 year ago

Checklist

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

jimmyjames commented 1 year ago

👋 hi @Elvintest, no, this library does not support creating a JWT from a pem file. See https://github.com/auth0/java-jwt/issues/214 for additional info and possible solutions, as well as https://github.com/auth0/java-jwt/issues/371. Thanks!