public class SignatureMarshaller extends java.lang.Object implements Marshaller
| Modifier and Type | Field and Description |
|---|---|
private org.slf4j.Logger |
log
Class logger.
|
| Constructor and Description |
|---|
SignatureMarshaller()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
private org.w3c.dom.Element |
createSignatureElement(Signature signature,
org.w3c.dom.Document document)
Creates the signature elements but does not compute the signature.
|
org.w3c.dom.Element |
marshall(XMLObject xmlObject)
Marshall this element, and its children, and root them in a newly created Document.
|
org.w3c.dom.Element |
marshall(XMLObject xmlObject,
org.w3c.dom.Document document)
Marshall this element, and its children, into a W3C DOM element.
|
org.w3c.dom.Element |
marshall(XMLObject xmlObject,
org.w3c.dom.Element parentElement)
Marshall the given XMLObject and append it as a child to the given parent element.
|
public org.w3c.dom.Element marshall(XMLObject xmlObject) throws MarshallingException
DocumentBuilder obtained from a DocumentBuilderFactory
created without any additional parameters or properties set; that is the system defaults properties are used.marshall in interface MarshallerxmlObject - the object to marshallMarshallingException - thrown if there is a problem marshalling the given objectpublic org.w3c.dom.Element marshall(XMLObject xmlObject, org.w3c.dom.Element parentElement) throws MarshallingException
marshall in interface MarshallerxmlObject - the XMLObject to be marshalledparentElement - the parent of the Element resulting from marshalling the given XMLObjectMarshallingException - thrown if the given XMLObject can not be marshalled.public org.w3c.dom.Element marshall(XMLObject xmlObject, org.w3c.dom.Document document) throws MarshallingException
marshall in interface MarshallerxmlObject - the object to marshalldocument - the DOM document the marshalled element will be placed inMarshallingException - thrown if there is a problem marshalling the given objectprivate org.w3c.dom.Element createSignatureElement(Signature signature, org.w3c.dom.Document document) throws MarshallingException
signature - the XMLObject to be signeddocument - the owning documentMarshallingException - thrown if the signature can not be constructed