Class SignatureMarshaller
- java.lang.Object
-
- org.opensaml.xmlsec.signature.impl.SignatureMarshaller
-
- All Implemented Interfaces:
org.opensaml.core.xml.io.Marshaller
public class SignatureMarshaller extends Object implements org.opensaml.core.xml.io.Marshaller
A marshaller forSignature
objects. This marshaller is really a no-op class. All the creation of the signature DOM elements is handled bySigner
when it signs the object.
-
-
Field Summary
Fields Modifier and Type Field Description private org.slf4j.Logger
log
Class logger.
-
Constructor Summary
Constructors Constructor Description SignatureMarshaller()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private Element
createSignatureElement(org.opensaml.xmlsec.signature.Signature signature, Document document)
Creates the signature elements but does not compute the signature.Element
marshall(org.opensaml.core.xml.XMLObject xmlObject)
Element
marshall(org.opensaml.core.xml.XMLObject xmlObject, Document document)
Element
marshall(org.opensaml.core.xml.XMLObject xmlObject, Element parentElement)
-
-
-
Method Detail
-
marshall
public Element marshall(org.opensaml.core.xml.XMLObject xmlObject) throws org.opensaml.core.xml.io.MarshallingException
- Specified by:
marshall
in interfaceorg.opensaml.core.xml.io.Marshaller
- Throws:
org.opensaml.core.xml.io.MarshallingException
-
marshall
public Element marshall(org.opensaml.core.xml.XMLObject xmlObject, Element parentElement) throws org.opensaml.core.xml.io.MarshallingException
- Specified by:
marshall
in interfaceorg.opensaml.core.xml.io.Marshaller
- Throws:
org.opensaml.core.xml.io.MarshallingException
-
marshall
public Element marshall(org.opensaml.core.xml.XMLObject xmlObject, Document document) throws org.opensaml.core.xml.io.MarshallingException
- Specified by:
marshall
in interfaceorg.opensaml.core.xml.io.Marshaller
- Throws:
org.opensaml.core.xml.io.MarshallingException
-
createSignatureElement
private Element createSignatureElement(org.opensaml.xmlsec.signature.Signature signature, Document document) throws org.opensaml.core.xml.io.MarshallingException
Creates the signature elements but does not compute the signature.- Parameters:
signature
- the XMLObject to be signeddocument
- the owning document- Returns:
- the Signature element
- Throws:
org.opensaml.core.xml.io.MarshallingException
- thrown if the signature can not be constructed
-
-