Stithaprajyna

I use this blog to jot down what ever comes into my mind or get to see anything I feel is important.

Saturday, March 25, 2006

Encrypting with X 509 Certificates

// Encrypt the message body with the credit card details using the
// Accounts Department Certificate
X509SecurityToken x509Cert = GetFabrikamAccountsDepartmentCertificate();
paymentServiceProxy.RequestSoapContext.Security.Tokens.Add( x509Cert );
paymentServiceProxy.RequestSoapContext.Security.Elements.Add( new EncryptedData( x509Cert ) );

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home