You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@santuario.apache.org by Yasir Khan <ya...@ascertia.com> on 2003/09/19 17:21:22 UTC

Base URI in XMLSignature

MessageHi,

I am new to Apache XML Security world. Can any body explain what is BaseURI in constructor of XMLSignature ??

org.apache.xml.security.samples.signature.XMLSignature(Document Doc, String BaseURI, String AlgoURL)

Thanx.

Regards,
Yasir Khan

Re: Base URI in XMLSignature

Posted by Steven Ihde <si...@cs.stanford.edu>.
On Fri, Sep 19, 2003 at 08:21:22PM +0500, Yasir Khan wrote:
> MessageHi,
> 
> I am new to Apache XML Security world. Can any body explain what is BaseURI in constructor of XMLSignature ??
> 
> org.apache.xml.security.samples.signature.XMLSignature(Document Doc, String BaseURI, String AlgoURL)
> 

The BaseURI lets XMLSignature figure out how to resolve relative
(non-fragment) URI references within the document.  It should be the
URI of the document itself.  E.g., if the base URI is
"file:///tmp/test.xml" and you add a ds:Reference to be signed with a
URI of "foo/bar.pdf" then the bytes for this item will be found at the
URI "file:///tmp/foo/bar.pdf".

-Steve


Re: Adding KeyInfo in XMLSignature

Posted by Yasir Khan <ya...@ascertia.com>.
MessageAny ideas on the below mentioned problem ..... ?????

Regards,

Yasir Khan
  ----- Original Message ----- 
  From: Yasir Khan 
  To: security-dev@xml.apache.org 
  Sent: Monday, September 22, 2003 12:37 PM
  Subject: Adding KeyInfo in XMLSignature


  Hi,

  XMLSignature class defines two methods to add the KeyInfo contents into XML Signature i.e.

  XMLSignature.addKeyInfo(X509Certificate);
  XMLSignature.addKeyInfo(PublicKey);

  How can we add other KeyInfo contents into KeyInfo element of XML Signature.???

  XMLSignature class defines a method getKeyInfo() that return KeyInfo element of XML Signature. But I couldn't found corresponding method addKeyInfo(KeyInfo) in XMLSignature class, I think following method should be present in XMLSignature class:
   
  XMLSignature.addKeyInfo(KeyInfo); 

  Any ideas??

  Best Regards,

  Yasir Khan

Adding KeyInfo in XMLSignature

Posted by Yasir Khan <ya...@ascertia.com>.
MessageHi,

XMLSignature class defines two methods to add the KeyInfo contents into XML Signature i.e.

XMLSignature.addKeyInfo(X509Certificate);
XMLSignature.addKeyInfo(PublicKey);

How can we add other KeyInfo contents into KeyInfo element of XML Signature.???

XMLSignature class defines a method getKeyInfo() that return KeyInfo element of XML Signature. But I couldn't found corresponding method addKeyInfo(KeyInfo) in  XMLSignature class, I think following method should be present in XMLSignature class:

XMLSignature.addKeyInfo(KeyInfo); 

Any ideas??

Best Regards,

Yasir Khan