<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Digital Signature Query</title><link>https://www.infopathdev.com:443/forums/thread/7177.aspx</link><pubDate>Sat, 16 Jul 2005 04:49:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7177</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7177.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7177</wfw:commentRss><description>Hi Niraj,&lt;br /&gt;&lt;br /&gt;I agree - what's the point of the certificate? :)  &lt;br /&gt;&lt;br /&gt;The certificate and the logged in person should match if you have certificate authority running on the same domain that your users are logging in to. &lt;br /&gt;&lt;br /&gt;You can get the login username using System.Environment.Username. There is also a way to do this in JScript, but form has to be full trust. Your form needs to be domain trust to get te username using managed code.&lt;br /&gt;&lt;br /&gt;Patrick Halstead [InfoPath MVP]&lt;br /&gt;InfoPathDev</description></item><item><title>Re: Digital Signature Query</title><link>https://www.infopathdev.com:443/forums/thread/7176.aspx</link><pubDate>Fri, 15 Jul 2005 20:59:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7176</guid><dc:creator>niraj</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7176.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7176</wfw:commentRss><description>Hi Patrick,&lt;br /&gt;&lt;br /&gt;Patrick as you told me i could access the issuedto property from the signature object.&lt;br /&gt;&lt;br /&gt;But the problem is that, that is the property of the certificate.&lt;br /&gt;It is not the login name or subject name of the person who has signed the form.&lt;br /&gt;I understand issuedto will be the identity of the person who owns the certificate but to trust IssuedTo to be true we need to have full trust on the certificate.&lt;br /&gt;Doesnt infopath note in anyways the username or anyother credentials of the person who signed the form and not his certificate.&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;&lt;br /&gt;Niraj&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;</description></item><item><title>Re: Digital Signature Query</title><link>https://www.infopathdev.com:443/forums/thread/7175.aspx</link><pubDate>Fri, 15 Jul 2005 06:41:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7175</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7175.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7175</wfw:commentRss><description>Thanks for the Information Niraj. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Agni&lt;br /&gt;InfoPathDev India</description></item><item><title>Re: Digital Signature Query</title><link>https://www.infopathdev.com:443/forums/thread/7174.aspx</link><pubDate>Thu, 14 Jul 2005 20:30:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7174</guid><dc:creator>niraj</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7174.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7174</wfw:commentRss><description>Thanks a lot Agni,&lt;br /&gt;&lt;br /&gt;This is a managed code though, right?&lt;br /&gt;&lt;br /&gt;I was looking for VbScript and after a lot of trial and error and some research i found it out.&lt;br /&gt;It is very much identical to the managed code that you gave.&lt;br /&gt;&lt;br /&gt;This is I access it through VbScript&lt;br /&gt;&lt;br /&gt;XDocument.SignedDataBlocks.Item(0).Signatures.Item(0).Certificate.IssuedTo&lt;br /&gt;&lt;br /&gt;To obtain counts of SignedDataBlocks and Signatures you could use this.&lt;br /&gt;&lt;br /&gt;XDocument.SignedDataBlocks.Count&lt;br /&gt;XDocument.SignedDataBlocks.Item(0).Signatures.Count&lt;br /&gt;		&lt;br /&gt;Thanks a lot, for the code snippet so I am on the right track now.&lt;br /&gt;Hope this helps others who need it too.&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;Niraj</description></item><item><title>Re: Digital Signature Query</title><link>https://www.infopathdev.com:443/forums/thread/7173.aspx</link><pubDate>Thu, 14 Jul 2005 19:23:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7173</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7173.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7173</wfw:commentRss><description>Hi Niraj, &lt;br /&gt;Place where you find username who has signed is &lt;br /&gt;thisXDocument.SignedDataBlocks[0].Signatures[0].Certificate.IssuedTo&lt;br /&gt;&lt;br /&gt;SignedDataBlocks and Signatures is a collection, you might want to use IEnumerator class for these two things instead of using indexing.&lt;br /&gt;&lt;br /&gt;Hope this helps!&lt;br /&gt;&lt;br /&gt;Agni&lt;br /&gt;InfoPathDev India</description></item><item><title>Re: Digital Signature Query</title><link>https://www.infopathdev.com:443/forums/thread/7172.aspx</link><pubDate>Thu, 14 Jul 2005 17:42:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7172</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7172.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7172</wfw:commentRss><description>Hi Niraj,&lt;br /&gt;You can access the signature object from script (Jscript or VBscript) or managed code (C# or VB.NET). For the latter, you will have to install .NET Framework and reinstall InfoPath to recognize it. I have asked Agni to provide code snippets later today.&lt;br /&gt;Cheers!&lt;br /&gt;&lt;br /&gt;Patrick Halstead [InfoPath MVP]&lt;br /&gt;InfoPathDev</description></item><item><title>Re: Digital Signature Query</title><link>https://www.infopathdev.com:443/forums/thread/7171.aspx</link><pubDate>Thu, 14 Jul 2005 16:23:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7171</guid><dc:creator>niraj</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7171.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7171</wfw:commentRss><description>Patrick,&lt;br /&gt;&lt;br /&gt;Sorry this may sound very silly but I am bit confused and would like to make things clear for me.&lt;br /&gt;&lt;br /&gt;The Signature Object can be accessed using Vbscript or JScript?&lt;br /&gt;Or is it that the Signature Object can be accessed using C#?&lt;br /&gt;&lt;br /&gt;I think you meant C# but still to make things clearer for me.&lt;br /&gt;&lt;br /&gt;And if possible could you please provide some code snippets.&lt;br /&gt;&lt;br /&gt;That will be great help.&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;Niraj&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;</description></item><item><title>Re: Digital Signature Query</title><link>https://www.infopathdev.com:443/forums/thread/7170.aspx</link><pubDate>Wed, 13 Jul 2005 22:09:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7170</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7170.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7170</wfw:commentRss><description>Hi again Niraj,&lt;br /&gt;No, you can just write some managed code in the form to access the OM. XPath and OM don't work together. To access the OM, you'll have to write some code, but this isn't so hard. Do you have the Visual Studio plugin? If not, see our home page. There's a link in the left pane.&lt;br /&gt;&lt;br /&gt;Patrick Halstead [InfoPath MVP]&lt;br /&gt;InfoPathDev</description></item><item><title>Re: Digital Signature Query</title><link>https://www.infopathdev.com:443/forums/thread/7169.aspx</link><pubDate>Wed, 13 Jul 2005 21:59:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7169</guid><dc:creator>niraj</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7169.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7169</wfw:commentRss><description>Hi Patrick,&lt;br /&gt;So you mean i should write an XPath query and retrieve the data.&lt;br /&gt;&lt;br /&gt;If possible could you just give a simple example.&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;Niraj</description></item><item><title>Re: Digital Signature Query</title><link>https://www.infopathdev.com:443/forums/thread/7168.aspx</link><pubDate>Wed, 13 Jul 2005 21:46:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7168</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7168.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7168</wfw:commentRss><description>Hi Niraj and welcome to the board,&lt;br /&gt;&lt;br /&gt;We have a project that parallels yours. Using the Tools-&amp;gt;Form Options-&amp;gt;Digital Signatures wizard, you can't have both per-section and per-form digisigs, but you can select per-section digisigs and have some code that signs the entire form when a button is clicked and I believe this will work for counter-sign as well as co-sign.&lt;br /&gt;&lt;br /&gt;As for the extraction of user data ... good question. The Signature object (see the InfoPath SDK), contains Comment, Status, SignatureBlockXmlNode, and Certificate. You'll want to get the Certificate object and access the IssuedTo property of that. &lt;br /&gt;&lt;br /&gt;Good luck!&lt;br /&gt;&lt;br /&gt;Patrick Halstead [InfoPath MVP]&lt;br /&gt;InfoPathDev</description></item><item><title>Digital Signature Query</title><link>https://www.infopathdev.com:443/forums/thread/4781.aspx</link><pubDate>Wed, 13 Jul 2005 21:38:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4781</guid><dc:creator>niraj</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4781.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=4781</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;I have a couple of queries about digital signature.&lt;br /&gt;&lt;br /&gt;First is it possible to have counter signatures for the whole form like we &lt;br /&gt;have for parts of the form. ( i mean signing the form + the existing &lt;br /&gt;signature)&lt;br /&gt;&lt;br /&gt;Secondly where is the data about who signed the form stored.&lt;br /&gt;I would like to extract the name or username of people who have signed a &lt;br /&gt;particular form and list them. In the signature information i could not find &lt;br /&gt;it.&lt;br /&gt;If you could tell me where in the signature group in which element it is &lt;br /&gt;stored that would be great.&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;Niraj&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;</description></item></channel></rss>