Examples of RelayState


Examples of org.opensaml.saml2.ecp.RelayState

*/
public class RelayStateUnmarshaller extends XSStringUnmarshaller {

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

Examples of org.opensaml.saml2.ecp.RelayState

*/
public class RelayStateMarshaller extends XSStringMarshaller {

    /** {@inheritDoc} */
    protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
        RelayState relayState = (RelayState) xmlObject;
       
        if (relayState.isSOAP11MustUnderstandXSBoolean() != null) {
            XMLHelper.marshallAttribute(RelayState.SOAP11_MUST_UNDERSTAND_ATTR_NAME,
                    relayState.isSOAP11MustUnderstandXSBoolean().toString(), domElement, false);
        }
        if (relayState.getSOAP11Actor() != null) {
            XMLHelper.marshallAttribute(RelayState.SOAP11_ACTOR_ATTR_NAME,
                    relayState.getSOAP11Actor(), domElement, false);
        }
       
    }
View Full Code Here

Examples of org.opensaml.saml2.ecp.RelayState

            throw new IllegalArgumentException("Relay state can't exceed size 80 when using ECP profile");
        }

        XMLObjectBuilderFactory builderFactory = Configuration.getBuilderFactory();
        SAMLObjectBuilder<RelayState> relayStateBuilder = (SAMLObjectBuilder<RelayState>) builderFactory.getBuilder(RelayState.DEFAULT_ELEMENT_NAME);
        RelayState relayState = relayStateBuilder.buildObject();
        relayState.setSOAP11Actor(RelayState.SOAP11_ACTOR_NEXT);
        relayState.setSOAP11MustUnderstand(true);
        relayState.setValue(relayStateValue);
        return relayState;

    }
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.