Package org.opensaml.samlext.saml2cb

Examples of org.opensaml.samlext.saml2cb.ChannelBindings


*/
public class ChannelBindingsUnmarshaller extends XSBase64BinaryUnmarshaller {

    /** {@inheritDoc} */
    protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
        ChannelBindings cb = (ChannelBindings) xmlObject;
       
        QName attrName = XMLHelper.getNodeQName(attribute);
        if (attribute.getLocalName().equals(ChannelBindings.TYPE_ATTRIB_NAME)) {
            cb.setType(attribute.getValue());
        } else if (ChannelBindings.SOAP11_MUST_UNDERSTAND_ATTR_NAME.equals(attrName)) {
            cb.setSOAP11MustUnderstand(XSBooleanValue.valueOf(attribute.getValue()));
        } else if (ChannelBindings.SOAP11_ACTOR_ATTR_NAME.equals(attrName)) {
            cb.setSOAP11Actor(attribute.getValue());
        } else {
            super.processAttribute(xmlObject, attribute);
        }      
    }
View Full Code Here


*/
public class ChannelBindingsMarshaller extends XSBase64BinaryMarshaller {

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

        if (cb.getType() != null) {
            domElement.setAttributeNS(null, ChannelBindings.TYPE_ATTRIB_NAME, cb.getType());
        }

        if (cb.isSOAP11MustUnderstandXSBoolean() != null) {
            XMLHelper.marshallAttribute(ChannelBindings.SOAP11_MUST_UNDERSTAND_ATTR_NAME,
                    cb.isSOAP11MustUnderstandXSBoolean().toString(), domElement, false);
        }
       
        if (cb.getSOAP11Actor() != null) {
            XMLHelper.marshallAttribute(ChannelBindings.SOAP11_ACTOR_ATTR_NAME,
                    cb.getSOAP11Actor(), domElement, false);
        }
    }
View Full Code Here

TOP

Related Classes of org.opensaml.samlext.saml2cb.ChannelBindings

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.