Encrypting Certain Properties of an Object
From: Softwaremaker (msdn_at_removethis.softwaremaker.net)
Date: 06/04/04
- Next message: Softwaremaker: "What is in the CipherData in the Entropy Element"
- Previous message: Lucien: "Re: modifying verifyTrust setting at runtime?"
- Next in thread: Softwaremaker: "Re: Encrypting Certain Properties of an Object"
- Reply: Softwaremaker: "Re: Encrypting Certain Properties of an Object"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 5 Jun 2004 05:30:08 +0800
Hiya Fellows,
I am sending an object A to Service B through a method C
A is exposed via B's proxy stub.
So I will send in a request using something like Console.WriteLine (S.C(A))
If I need to encrypt only certain fields of A to reduce the whole payload,
what is the best way to do it (add the ID Attributes) through the
XMLSerializer ?
I know I can specify specific objects in my service to require encryption by
specifying the ID XMLAttributes on the Class. From there, I can require
clients to pass in secured and unsecured parameters in the <WebMethod>
BUT how can I set the Service Object to contain certain encrypted elements
so that the client will just only need to set the ID on a property of an
Object B that needs encryption and pass in that Object B into the parameter
of the <WebMothod> ?
In this case, I spare the client from doing any form of manual
XMLSerialization and they will just have to set the ID on the property of
the Object, reference it in the EncryptedData and send it to WSE.
However, that didnt work because once I added the wsu:Id Attribute and
deserialized it back into the object, the wsu:Id is gone.
Shouldnt we be setting the wsu:Id on the serivce-side object instead instead
of serializing at the client ?
Any tips, advice is greatly appreciated.
Thank you.
- Next message: Softwaremaker: "What is in the CipherData in the Entropy Element"
- Previous message: Lucien: "Re: modifying verifyTrust setting at runtime?"
- Next in thread: Softwaremaker: "Re: Encrypting Certain Properties of an Object"
- Reply: Softwaremaker: "Re: Encrypting Certain Properties of an Object"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|