Hi ,

How to Encrypt a UsernameToken using WS-Policy.

I was able to do that using Code as :

SecurityToken token = new UsernameToken(t_username.Text,
> t_password.Text,
> PasswordOption.SendPlainText);
>
>
> SecurityToken issuerToken = GetServerTokenForEncryption();
>
>
> // Sign the security token request.
> client.RequestSoapContext.Security.Elements.Add( new EncryptedData(
> issuerToken, string.Format("#{0}",token.Id )) );
>

But how to do the same using Policy.

Thanks in Adv.
Ravi Dasari