|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.xml.security.utils.IdResolver
Purpose of this class is to enable the XML Parser to keep track of ID
attributes. This is done by 'registering' attributes of type ID at the
IdResolver. This is necessary if we create a document from scratch and we
sign some resources with a URI using a fragent identifier...
The problem is that if you do not validate a document, you cannot use the
getElementByID
functionality. So this modules uses some implicit
knowledge on selected Schemas and DTDs to pick the right Element for a given
ID: We know that all @Id
attributes in an Element from the XML
Signature namespace are of type ID
.
Method Summary | |
static org.w3c.dom.Element |
getElementById(org.w3c.dom.Document doc,
java.lang.String id)
Method getElementById |
static void |
registerElementById(org.w3c.dom.Element element,
org.w3c.dom.Attr id)
Method registerElementById |
static void |
registerElementById(org.w3c.dom.Element element,
java.lang.String idValue)
Method registerElementById |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static void registerElementById(org.w3c.dom.Element element, java.lang.String idValue)
element
- idValue
- public static void registerElementById(org.w3c.dom.Element element, org.w3c.dom.Attr id)
element
- id
- public static org.w3c.dom.Element getElementById(org.w3c.dom.Document doc, java.lang.String id)
doc
- id
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |