Package org.opensaml.xml.signature

Examples of org.opensaml.xml.signature.KeyInfoType


*/
public class KeyInfoTypeUnmarshaller extends AbstractXMLSignatureUnmarshaller {

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

        if (attribute.getLocalName().equals(KeyInfoType.ID_ATTRIB_NAME)) {
            keyInfo.setID(attribute.getValue());
            attribute.getOwnerElement().setIdAttributeNode(attribute, true);
        } else {
            super.processAttribute(xmlObject, attribute);
        }
    }
View Full Code Here


    }

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

        // KeyInfoType contains a range of specific types, but also
        // support <any>, with an unbounded choice over all (no ordering)
        // so no need to distinguish.
        keyInfo.getXMLObjects().add(childXMLObject);
    }
View Full Code Here

*/
public class KeyInfoTypeMarshaller extends AbstractXMLSignatureMarshaller {

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

        if (keyInfo.getID() != null) {
            domElement.setAttributeNS(null, KeyInfoType.ID_ATTRIB_NAME, keyInfo.getID());
            domElement.setIdAttributeNS(null, KeyInfoType.ID_ATTRIB_NAME, true);
        }
    }
View Full Code Here

*/
public class KeyInfoTypeUnmarshaller extends AbstractXMLSignatureUnmarshaller {

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

        if (attribute.getLocalName().equals(KeyInfoType.ID_ATTRIB_NAME)) {
            keyInfo.setID(attribute.getValue());
            attribute.getOwnerElement().setIdAttributeNode(attribute, true);
        } else {
            super.processAttribute(xmlObject, attribute);
        }
    }
View Full Code Here

    }

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

        // KeyInfoType contains a range of specific types, but also
        // support <any>, with an unbounded choice over all (no ordering)
        // so no need to distinguish.
        keyInfo.getXMLObjects().add(childXMLObject);
    }
View Full Code Here

*/
public class KeyInfoTypeMarshaller extends AbstractXMLSignatureMarshaller {

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

        if (keyInfo.getID() != null) {
            domElement.setAttributeNS(null, KeyInfoType.ID_ATTRIB_NAME, keyInfo.getID());
            domElement.setIdAttributeNS(null, KeyInfoType.ID_ATTRIB_NAME, true);
        }
    }
View Full Code Here

TOP

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

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.