-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JSON POJO unmarshalling #369
Milestone
Comments
Didn't have time to get this in 0.10.0. We should be able to get this in the next release. |
lhazlewood
changed the title
claims.get(name, Class<T> type) enhancements
JSON POJO marshalling
Aug 23, 2018
Closed
+1 on this . thanks |
1 task
bdemers
added a commit
that referenced
this issue
Sep 27, 2019
- Adds new constructor JacksonDeserializer(Map<String, Class> claimTypeMap), which will enable later calls Claims.get("key", CustomType.class) to work as expectd - Adds new Maps utility class to make map creation fluent Fixes: #369
bdemers
added a commit
that referenced
this issue
Sep 30, 2019
- Adds new constructor JacksonDeserializer(Map<String, Class> claimTypeMap), which will enable later calls Claims.get("key", CustomType.class) to work as expectd - Adds new Maps utility class to make map creation fluent Fixes: #369
bdemers
added a commit
that referenced
this issue
Oct 3, 2019
- Adds new constructor JacksonDeserializer(Map<String, Class> claimTypeMap), which will enable later calls Claims.get("key", CustomType.class) to work as expectd - Adds new Maps utility class to make map creation fluent Fixes: #369
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Per the discussion in #214:
Improve the exception message:
String msg = "Cannot convert existing claim value of type " + value.getClass() + " to desired type " + requiredType + ". JJWT only converts simple Date, Long, Integer, Short and Byte types automatically. Anything more complex is expected to be already converted to your desired type by the JSON Deserializer implementation. You may specify a custom Deserializer for a JwtParser with the desired conversion configuration via the JwtParser#deserializeJsonWith method. See https://github.com/jwtk/jjwt/README.md#whatever for more information.";
Plus:
Claims#get
method (dunno why it is missing)new JacksonDeserializer(Maps.of("user", User.class))
https://github.com/jwtk/jjwt/README.md#whatever
link in the above exception message).cc @cbudtz
The text was updated successfully, but these errors were encountered: