This project is read-only.

How to partially encrypt a message

J.D. Meier, Jason Taylor, Prashant Bansode, Carlos Farre, Madhu Sundararajan, Steve Gregersen.

If you are using message security, then use the ServiceContract(ProtectionLevel) attribute to specify message security protection levels on the interface or operation level.
See the following example of an interface with protection level set to Sign.
public interface IService
	string GetData(int value);	

See the following example of an operation with protection level set to Sign.
string GetData(int value);

The protection level options are:
  • None. Use None to turn off signing and encryption on the operation or interface.
  • Sign. Use Sign to sign the interface or operation but not encrypt it.
  • EncryptAndSign. Use EncryptAndSign to both encrypt and sign the interface or operation.
If you are using transport security, you cannot partially encrypt your messages.

Additional Resources

Last edited May 8, 2008 at 7:41 AM by prashantbansode, version 2


No comments yet.