Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / November 2004

Tip: Looking for answers? Try searching our database.

EncryptedData and GetIdElement

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Petteri Stenius - 04 Oct 2004 17:11 GMT
Hello,

We are trying to use Microsoft.Web.Services2.Security.EncryptedData for
encrypting parts of a XML document. The problem is that the EncryptedData
implementation only finds XML element references with the wsu:Id syntax. The
XML schema that we are using does not allow inserting the wsu:Id attribute.

Both Microsoft.Web.Services2.Security.MessageSignature and
System.Security.Cryptography.Xml.SignedXml classes allow the caller to
override the GetIdElement to customize resolving similar XML element
references with XML signatures. It looks like EncryptedData also implements
a method named GetIdElement. This method however has a private access
modifier preventing any overriding.

Is there any way to work around this issue? Do we need to wait for .NET 2.0
to encrypt XML?

Petteri
Hervey Wilson [MSFT] - 05 Oct 2004 17:03 GMT
> Hello,
>
[quoted text clipped - 12 lines]
> Is there any way to work around this issue? Do we need to wait for .NET 2.0
> to encrypt XML?

The Signing and Encryption classes in WSE2 are oriented to processing
WS-Security messages and therefore they do not provide a general purpose
XMLDSIG / XMLENC implementation. Unfortunately you will have to either
find an alternative or wait for .NET 2.0.

Signature

This posting is provided "AS IS", with no warranties, and confers no rights.

crypto-mania! - 18 Nov 2004 00:55 GMT
And how would I do this in Whidbey ? I am using the beta version and still
haven't figured out how to encrypt specific xml elements in a xml document.

Thanks!

> > Hello,
> >
[quoted text clipped - 17 lines]
> XMLDSIG / XMLENC implementation. Unfortunately you will have to either
> find an alternative or wait for .NET 2.0.
Julie Lerman - 22 Nov 2004 18:05 GMT
WSE2 does not work with Whidbey (yet)

> And how would I do this in Whidbey ? I am using the beta version and still
> haven't figured out how to encrypt specific xml elements in a xml document.
[quoted text clipped - 22 lines]
> > XMLDSIG / XMLENC implementation. Unfortunately you will have to either
> > find an alternative or wait for .NET 2.0.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.