Examples of ECKeyValue


Examples of org.opensaml.xml.signature.ECKeyValue

    /** ECParameters element name. */
    public static final QName ECPARAMETERS_ELEMENT_NAME = new QName(XMLConstants.XMLSIG11_NS, "ECParameters");

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

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

Examples of org.opensaml.xml.signature.ECKeyValue

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

        if (childXMLObject instanceof NamedCurve) {
            keyValue.setNamedCurve((NamedCurve) childXMLObject);
        } else if (childXMLObject instanceof PublicKey) {
            keyValue.setPublicKey((PublicKey) childXMLObject);
        } else if (childXMLObject.getElementQName().equals(ECPARAMETERS_ELEMENT_NAME)) {
            keyValue.setECParameters(childXMLObject);
        } else {
            super.processChildElement(parentXMLObject, childXMLObject);
        }
    }
View Full Code Here

Examples of org.opensaml.xml.signature.ECKeyValue

*/
public class ECKeyValueMarshaller extends AbstractXMLSignatureMarshaller {

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

        if (ec.getID() != null) {
            domElement.setAttributeNS(null, ECKeyValue.ID_ATTRIB_NAME, ec.getID());
            domElement.setIdAttributeNS(null, ECKeyValue.ID_ATTRIB_NAME, true);
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.