- changed status to invalid
JWE object with signed JWT throws NPE on encryption.
Hi I'm following one of the examples from the website http://connect2id.com/products/nimbus-jose-jwt/examples/signed-and-encrypted-jwt and hit NPE.
Encrypting JWE object with signed JWT throws NPE. I studied the code a bit and found out that toByte() API does not support SignedJWT converstion to byte.
Comments (11)
-
reporter -
reporter - edited description
-
reporter - changed title to JWE object with signed JWT throws NPE on encryption.
-
reporter - changed status to open
Reopen issue after changing description.
-
Thank you for reporting this, we'll look at it shortly.
-
Added missing conversion to byte array, see commit 30c61b2.
Also used the opportunity to refactor the conversion code.
-
Added extra nested JWE test, see commit a5aea27.
-
- changed status to resolved
Released fix as version 3.2.1 and pushed to Maven Central (should appear shortly - http://search.maven.org/#search|gav|1|g%3A%22com.nimbusds%22%20AND%20a%3A%22nimbus-jose-jwt%22 )
Please, let us know if your code runs correctly now.
Thanks,
Your Connect2id Support Team
-
3.2.1 is on Maven Central now:
http://search.maven.org/#artifactdetails|com.nimbusds|nimbus-jose-jwt|3.2.1|jar
-
reporter Tested and working. Thanks for the prompt fix. :-)
-
Great. Happy coding :)
- Log in to comment
Invalid.