|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wss4j.dom.message.DOMCallbackLookup
public class DOMCallbackLookup
This class uses a DOM-based approach to locate Elements that are referenced via an Id.
| Constructor Summary | |
|---|---|
DOMCallbackLookup(Document doc)
|
|
| Method Summary | |
|---|---|
Element |
getAndRegisterElement(String id,
String valueType,
boolean checkMultipleElements,
DOMCryptoContext context)
Get the DOM element that corresponds to the given id and ValueType reference. |
Element |
getElement(String id,
String valueType,
boolean checkMultipleElements)
Get the DOM element that corresponds to the given id and ValueType reference. |
List<Element> |
getElements(String localname,
String namespace)
Get the DOM element(s) that correspond to the given localname/namespace. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DOMCallbackLookup(Document doc)
| Method Detail |
|---|
public Element getElement(String id,
String valueType,
boolean checkMultipleElements)
throws WSSecurityException
getElement in interface CallbackLookupid - The id of the element to locatevalueType - The ValueType attribute of the element to locate (can be null)checkMultipleElements - If true then go through the entire tree and return
null if there are multiple elements with the same Id
WSSecurityException
public Element getAndRegisterElement(String id,
String valueType,
boolean checkMultipleElements,
DOMCryptoContext context)
throws WSSecurityException
getAndRegisterElement in interface CallbackLookupid - The id of the element to locatevalueType - The ValueType attribute of the element to locate (can be null)checkMultipleElements - If true then go through the entire tree and return
null if there are multiple elements with the same Idcontext - The DOMCryptoContext to store the Element in
WSSecurityException
public List<Element> getElements(String localname,
String namespace)
throws WSSecurityException
getElements in interface CallbackLookuplocalname - The localname of the Element(s)namespace - The namespace of the Element(s)
WSSecurityException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||