Skip to content
Advertisement

Tag: jwt

java.lang.NoClassDefFoundError: io/jsonwebtoken/SignatureAlgorithm

i have the following code that tries to create a jwt token. there will always be an error as shown below whenever it tries to execute SignatureAlgorithm signatureAlgorithm = SignatureAlgorithm.HS256; I have manually deleted the jwt jar file and update maven again to reinstall the jar but the issue still persist. Any help will be greatly appreciated! Error Log java.lang.NoClassDefFoundError:

How do I get a custom field out of the payload using JJWT

OK, I am adding a couple of custom claims to the payload when I generate the JWT, and I can pull those out just fine in my front-end (javascript). I then have my javascript send an ajax call to a micro-service and it passes the JWT along with it. I want to get my custom claims out of the JWT

Advertisement