How to create an encrypted application attribute?

Which IIQ version are you inquiring about?

8.4

Share all details about your problem, including any error messages you may have received.

I’m creating a before rule for my webservice connector application.

Based on the documentation, I’m using connectorStateMap to set new application properties in the rule.

How can I set encrypted properties?

Should I use context.encrypt(…)before adding the attribute to the connectorStateMapor is it a better way to achieve it?

This is my current solution:

String encryptedToken = context.encrypt(accessToken);

Map state = new HashMap();
state.put("access_token", encryptedToken);

Map ret = new HashMap();
ret.put("updatedEndPoint", requestEndPoint);
ret.put("connectorStateMap", state);
return ret;

This encryption should work and good approach, are you facing any issue with this?

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.