setEncryption method

Sets an Encryption.

 Syntax
 Parameters
 Returns