I cannot find any sample code on this. Thanks.
Thanks for your interest in our products.
Please visit the following link for required information on Working with Security and Signatures.
In case it does not satisfy your requirements of you have any further query, please feel free to contact.