Closed dailymartin closed 7 years ago
Hi @dailymartin, thanks for your interest!
Could you please try using 0.0.9-SNAPSHOT
version?
I've changed this API there:
public PKFileBasedSigningUtil() {
super(new ObjectMapper());
}
@Inject
public PKFileBasedSigningUtil(ObjectWriter objectWriter) {
super(objectWriter);
}
/**
* @deprecated Please use PKFileBasedSigningUtil(ObjectWriter objectWriter) instead
* @param objectMapper
*/
@Deprecated
public PKFileBasedSigningUtil(ObjectMapper objectMapper) {
super(objectMapper);
}
So in your case just default "no-arguments" constructor PKFileBasedSigningUtil()
should be Ok.
If this resolves your issue, ask @drallgood to prepare a release version with these changes.
The API was changed to prevent the above mentioned cases, so now you have two options:
jpasskit
to do all the initializations for you;ObjectMapper
yourself, just create ObjectWriter
from it and pass it to PKFileBasedSigningUtil
- in this case it's expected that you add the required mix-ins yourself.@stepio
Thanks for your help.
It's done with 0.0.9-SNAPSHOT
:)
@drallgood
Could you deploy 0.0.9
as a release version?
@dailymartin @stepio Done. Sorry for the delay.
@drallgood No problem. Thanks a lot :)
My project uses custom object mapper as shared, aka, registered bean, as bellow.
And PKFileBasedSigningUtil makes Object Mapper set other values.
So, after calling PKFileBasedSigningUtil once, the object mapper's attributes become jpasskit's, not my own. And then, other operations in my project are confused as below.
I think PKFileBasedSigningUtil uses cloned Object Mapper is better.
I'm not native in English. So please feel free to ask me about this issue, if it's not clear. Thanks.