Resending as the mail-archive did not pick up my last post on this
thread:
 
Brent,
 
That worked perfectly. Here is the resulting code I used from my first
post:
 
..
 
      byte inputBytes[] = token.getBytes();
      Document doc = db.parse(new ByteArrayInputStream(inputBytes));
 
// Set up required ID attribute
Element rootElement = doc.getDocumentElement();
      String uriRef =
doc.getDocumentElement().getAttribute("AssertionId");
      Attr id =
doc.getDocumentElement().getAttributeNode("AssertionID");
      IdResolver.registerElementById(rootElement, id);
          
      Element sigElement = null;
      NodeList nodes =
doc.getElementsByTagNameNS(org.apache.xml.security.utils.Constants.Signa
tureSpecNS,"Signature");
 
..
 
I had to use the IdResolver.(Element,Attr) method. Thanks again for your
help and hopefully this thread helps others out trying to figure this
stuff out,
 
Phil
      
 

Reply via email to