Class SignatureMarshaller

  • All Implemented Interfaces:
    org.opensaml.core.xml.io.Marshaller

    public class SignatureMarshaller
    extends Object
    implements org.opensaml.core.xml.io.Marshaller
    A marshaller for Signature objects. This marshaller is really a no-op class. All the creation of the signature DOM elements is handled by Signer when it signs the object.
    • Field Detail

      • log

        private final org.slf4j.Logger log
        Class logger.
    • Constructor Detail

      • SignatureMarshaller

        public SignatureMarshaller()
        Constructor.
    • Method Detail

      • marshall

        public Element marshall​(org.opensaml.core.xml.XMLObject xmlObject)
                         throws org.opensaml.core.xml.io.MarshallingException
        Specified by:
        marshall in interface org.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 interface org.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 interface org.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 signed
        document - the owning document
        Returns:
        the Signature element
        Throws:
        org.opensaml.core.xml.io.MarshallingException - thrown if the signature can not be constructed