Package org.apache.axiom.soap

Examples of org.apache.axiom.soap.SOAPFactory.createOMElement()


            OMElement authnContext =
                factory.createOMElement("AuthnContext", saml, authnStatement);

            OMElement authnContextClassRef =
                factory.createOMElement("AuthnContextClassRef", saml,
                                        authnContext);
            authnContextClassRef.setText("urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport");
        }

        soapEnvelope.serializeAndConsume(writer);
View Full Code Here


        // build the SAML stuff
        OMNamespace samlp =
            factory.createOMNamespace("urn:oasis:names:tc:SAML:2.0:protocol",
                                      "samlp");
        OMElement response =
            factory.createOMElement("Response", samlp, soapBody);
        OMNamespace saml =
            response.declareNamespace("urn:oasis:names:tc:SAML:2.0:assertion",
                                      "saml");

        response.addAttribute("ID", "foo1", null);
View Full Code Here

        response.addAttribute("ID", "foo1", null);
        response.addAttribute("Version", "2.0", null);
        response.addAttribute("IssueInstant", strCurrentDate, null);

        OMElement status = factory.createOMElement("Status", samlp, response);
        OMElement statusCode =
            factory.createOMElement("StatusCode", samlp, status);
        statusCode.addAttribute("Value", buildStatus, null);

        if (buildStatus == SAML_STATUS_CODE_SUCCESS) {
View Full Code Here

        response.addAttribute("Version", "2.0", null);
        response.addAttribute("IssueInstant", strCurrentDate, null);

        OMElement status = factory.createOMElement("Status", samlp, response);
        OMElement statusCode =
            factory.createOMElement("StatusCode", samlp, status);
        statusCode.addAttribute("Value", buildStatus, null);

        if (buildStatus == SAML_STATUS_CODE_SUCCESS) {
            OMElement assertion =
                factory.createOMElement("Assertion", saml, response);
View Full Code Here

            factory.createOMElement("StatusCode", samlp, status);
        statusCode.addAttribute("Value", buildStatus, null);

        if (buildStatus == SAML_STATUS_CODE_SUCCESS) {
            OMElement assertion =
                factory.createOMElement("Assertion", saml, response);
            assertion.addAttribute("ID", "foo2", null);
            assertion.addAttribute("Version", "2.0", null);

            assertion.addAttribute("IssueInstant", strCurrentDate, null);
View Full Code Here

            assertion.addAttribute("Version", "2.0", null);

            assertion.addAttribute("IssueInstant", strCurrentDate, null);

            OMElement issuer =
                factory.createOMElement("Issuer", saml, assertion);
            issuer.setText(issuerName);

            OMElement subject =
                factory.createOMElement("Subject", saml, assertion);
View Full Code Here

            OMElement issuer =
                factory.createOMElement("Issuer", saml, assertion);
            issuer.setText(issuerName);

            OMElement subject =
                factory.createOMElement("Subject", saml, assertion);

            OMElement nameID =
                factory.createOMElement("NameID", saml, subject);
            nameID.setText(query.getSubject());
View Full Code Here

            OMElement subject =
                factory.createOMElement("Subject", saml, assertion);

            OMElement nameID =
                factory.createOMElement("NameID", saml, subject);
            nameID.setText(query.getSubject());

            OMElement authzDecisionStatement =
                factory.createOMElement("AuthzDecisionStatement", saml,
                                        assertion);
View Full Code Here

            OMElement nameID =
                factory.createOMElement("NameID", saml, subject);
            nameID.setText(query.getSubject());

            OMElement authzDecisionStatement =
                factory.createOMElement("AuthzDecisionStatement", saml,
                                        assertion);
            authzDecisionStatement.addAttribute("Decision", decisionResult,
                                                null);
            authzDecisionStatement.addAttribute("Resource",
                                                query.getResource(), null);
View Full Code Here

                                                null);
            authzDecisionStatement.addAttribute("Resource",
                                                query.getResource(), null);

            OMElement action =
                factory.createOMElement("Action", saml, authzDecisionStatement);
            action.addAttribute("Namespace", query.getActionNamespace(), null);
            action.setText(query.getAction());
        }

        soapEnvelope.serializeAndConsume(writer);
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.