All Downloads are FREE. Search and download functionalities are using the official Maven repository.

uk.gov.ida.saml.serializers.XmlObjectToElementTransformer Maven / Gradle / Ivy

There is a newer version: 3.4.6-277
Show newest version
package uk.gov.ida.saml.serializers;

import org.opensaml.core.xml.XMLObject;
import org.opensaml.core.xml.io.MarshallingException;
import org.opensaml.core.xml.util.XMLObjectSupport;
import org.w3c.dom.Element;

import java.util.function.Function;


public class XmlObjectToElementTransformer implements Function {

    public Element apply(TInput rootObject) {
        try {
            return XMLObjectSupport.marshall(rootObject);
        } catch (MarshallingException e) {
            throw new RuntimeException(e);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy