Package org.opensaml.xml.signature

Examples of org.opensaml.xml.signature.Transform


*/
public class TransformUnmarshaller extends AbstractXMLSignatureUnmarshaller {

    /** {@inheritDoc} */
    protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
        Transform transform = (Transform) xmlObject;

        if (attribute.getLocalName().equals(Transform.ALGORITHM_ATTRIB_NAME)) {
            transform.setAlgorithm(attribute.getValue());
        } else {
            super.processAttribute(xmlObject, attribute);
        }
    }
View Full Code Here


    }

    /** {@inheritDoc} */
    protected void processChildElement(XMLObject parentXMLObject, XMLObject childXMLObject)
            throws UnmarshallingException {
        Transform transform = (Transform) parentXMLObject;

        // Has <any> open content model + XPath children
        transform.getAllChildren().add(childXMLObject);
    }
View Full Code Here

*/
public class TransformMarshaller extends AbstractXMLSignatureMarshaller {

    /** {@inheritDoc} */
    protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
        Transform transform = (Transform) xmlObject;

        if (transform.getAlgorithm() != null) {
            domElement.setAttributeNS(null, Transform.ALGORITHM_ATTRIB_NAME, transform.getAlgorithm());
        }
    }
View Full Code Here

*/
public class TransformUnmarshaller extends AbstractXMLSignatureUnmarshaller {

    /** {@inheritDoc} */
    protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
        Transform transform = (Transform) xmlObject;

        if (attribute.getLocalName().equals(Transform.ALGORITHM_ATTRIB_NAME)) {
            transform.setAlgorithm(attribute.getValue());
        } else {
            super.processAttribute(xmlObject, attribute);
        }
    }
View Full Code Here

    }

    /** {@inheritDoc} */
    protected void processChildElement(XMLObject parentXMLObject, XMLObject childXMLObject)
            throws UnmarshallingException {
        Transform transform = (Transform) parentXMLObject;

        // Has <any> open content model + XPath children
        transform.getAllChildren().add(childXMLObject);
    }
View Full Code Here

*/
public class TransformMarshaller extends AbstractXMLSignatureMarshaller {

    /** {@inheritDoc} */
    protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
        Transform transform = (Transform) xmlObject;

        if (transform.getAlgorithm() != null) {
            domElement.setAttributeNS(null, Transform.ALGORITHM_ATTRIB_NAME, transform.getAlgorithm());
        }
    }
View Full Code Here

TOP

Related Classes of org.opensaml.xml.signature.Transform

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.