Could not encrypt buf: BouncyCodec encode failed
We use SSO in our product. It works well before we did some modifications to the code in the recent release.
We want to pass a new parameter to Lithium side when doing SSO cookie writing.
So we add a new parameter in the following way:
"
Map<STRING, STRING> chatParms = NEW HashMap<STRING, STRING>();
chatParms.put("profile.businessname", busName);
chatParms.put("profile.businessid", "" + busId);
chatParms.put("profile.industry", industryName);// this is the newly added parameter
chatParms.put("roles.grant", "DF_SSO_Role");
LithiumSSOClient.writeLithiumCookie(ssoId, login, loginUser.getEmail(), chatParms, request, response);
"
But we got an exception:
lithium.user.sso.SSOException: Could NOT ENCRYPT buf: lithium.util.io.EncodeException- BouncyCodec ENCODE failed
AT lithium.user.sso.LithiumSSOClient.encode(LithiumSSOClient.java:203)
AT lithium.user.sso.LithiumSSOClient.getLithiumCookieValue(LithiumSSOClient.java:437)
AT lithium.user.sso.LithiumSSOClient.getLithiumCookieValue(LithiumSSOClient.java:463)
AT lithium.user.sso.LithiumSSOClient.getLithiumCookie(LithiumSSOClient.java:532)
AT lithium.user.sso.LithiumSSOClient.writeLithiumCookie(LithiumSSOClient.java:598)
It seems that the exception was thrown in LithiumSSOClient.encode().
Can anyone help me out?
Thanks.