Examples of SignatureConfirmation


Examples of org.opensaml.ws.wssecurity.SignatureConfirmation

*/
public class SignatureConfirmationMarshaller extends AbstractWSSecurityObjectMarshaller {

    /** {@inheritDoc} */
    protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
        SignatureConfirmation sc = (SignatureConfirmation) xmlObject;
       
        if (!DatatypeHelper.isEmpty(sc.getWSUId())) {
            XMLHelper.marshallAttribute(SignatureConfirmation.WSU_ID_ATTR_NAME, sc.getWSUId(), domElement, true);
        }
        if (!DatatypeHelper.isEmpty(sc.getValue())) {
            domElement.setAttributeNS(null, SignatureConfirmation.VALUE_ATTRIB_NAME, sc.getValue());
        }
    }
View Full Code Here

Examples of org.opensaml.ws.wssecurity.SignatureConfirmation

*/
public class SignatureConfirmationMarshaller extends AbstractWSSecurityObjectMarshaller {

    /** {@inheritDoc} */
    protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
        SignatureConfirmation sc = (SignatureConfirmation) xmlObject;
       
        if (!DatatypeHelper.isEmpty(sc.getWSUId())) {
            XMLHelper.marshallAttribute(SignatureConfirmation.WSU_ID_ATTR_NAME, sc.getWSUId(), domElement, true);
        }
        if (!DatatypeHelper.isEmpty(sc.getValue())) {
            domElement.setAttributeNS(null, SignatureConfirmation.VALUE_ATTRIB_NAME, sc.getValue());
        }
    }
View Full Code Here

Examples of org.opensaml.ws.wssecurity.SignatureConfirmation

*/
public class SignatureConfirmationUnmarshaller extends AbstractWSSecurityObjectUnmarshaller {

    /** {@inheritDoc} */
    protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
        SignatureConfirmation sc = (SignatureConfirmation) xmlObject;
       
        QName attrName =
            XMLHelper.constructQName(attribute.getNamespaceURI(), attribute.getLocalName(), attribute.getPrefix());
        if (SignatureConfirmation.WSU_ID_ATTR_NAME.equals(attrName)) {
            sc.setWSUId(attribute.getValue());
            attribute.getOwnerElement().setIdAttributeNode(attribute, true);
        } else if (SignatureConfirmation.VALUE_ATTRIB_NAME.equals(attribute.getLocalName())) {
            sc.setValue(attribute.getValue());
        } else {
            super.processAttribute(xmlObject, attribute);
        }
    }
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.