iOS sdk and "server side secret"

I have a partner which I turned on the “Server Side Secret” in the access control
No I’m using the ios SDK and need to push the ks in to the player , how do I do that?
I tried kdp.setKDPAttribute(“config.flashvars”,“ks”,“val”), but didn’t seem to work.