electric.soap.security.signature
Class WSSReferenceProcessor
java.lang.Object
electric.soap.security.signature.WSSReferenceProcessor
- All Implemented Interfaces:
- IReferenceProcessor, IWSSConstants, IXMLSignatureConstants
- public class WSSReferenceProcessor
- extends java.lang.Object
- implements IReferenceProcessor, IXMLSignatureConstants, IWSSConstants
ReferenceProcessor knows about how to map between
ElementReferences, <reference> objects, and the pointed-to
elements in a document.
There are several kinds of references, and each
has a particular strategy (eg, xpath, or an ID/IDREF, etc)
Some, like ID/IDREF, may require annotating the reference
target with an ID attribute.
- Author:
- webMethods
Fields inherited from interface electric.soap.security.signature.xml.IXMLSignatureConstants |
C14N_METHOD, DIGEST_METHOD, DIGEST_VALUE, DS, DS_NAMESPACE, DS_PREFIX, KEY_INFO, REFERENCE, RSA_SHA1, SIGNATURE, SIGNATURE_ALGORITHM_ATTRIBUTE, SIGNATURE_METHOD, SIGNATURE_VALUE, SIGNED_INFO, TRANSFORM, TRANSFORMS, XML_EXC_C14N, XMLDSIG_SHA1 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WSSReferenceProcessor
public WSSReferenceProcessor()
resolveReference
public Element resolveReference(Element rootElement,
ElementReference reference)
- Specified by:
resolveReference
in interface IReferenceProcessor
- Parameters:
rootElement
- reference
-
- Returns:
- the element pointed to by the reference.
addReference
public Element addReference(Document document,
ElementReference reference)
- Description copied from interface:
IReferenceProcessor
- Add a new reference to the given document, and return the
resulting <reference> element.
- Specified by:
addReference
in interface IReferenceProcessor
- Parameters:
document
- reference
-
- Returns:
- a new <reference> element.
elementToReference
public ElementReference elementToReference(Element rootElement,
Element referenceElement)
- Description copied from interface:
IReferenceProcessor
- Given a <reference> element from a signed document, create
a new ElementReference object.
- Specified by:
elementToReference
in interface IReferenceProcessor
- Parameters:
rootElement
- referenceElement
-
- Returns:
- a new ElementReference object.
copyright© 2001-2004 by webMethods All Rights Reserved.