Package org.apache.axiom.soap

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


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

        if (buildStatus == SAML_STATUS_CODE_SUCCESS && userName != null) {
            OMElement response =
                factory.createOMElement("Response", samlp, artifactResponse);
            response.addAttribute("ID", "foo2", null);
            response.addAttribute("Version", "2.0", null);
            response.addAttribute("IssueInstant", strCurrentDate, null);

            status = factory.createOMElement("Status", samlp, response);
View Full Code Here


                factory.createOMElement("Response", samlp, artifactResponse);
            response.addAttribute("ID", "foo2", null);
            response.addAttribute("Version", "2.0", null);
            response.addAttribute("IssueInstant", strCurrentDate, null);

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

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

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

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

            OMElement assertion =
                factory.createOMElement("Assertion", saml, response);
            assertion.addAttribute("xmlns",
View Full Code Here

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

            OMElement assertion =
                factory.createOMElement("Assertion", saml, response);
            assertion.addAttribute("xmlns",
                                   "urn:oasis:names:tc:SAML:2.0:assertion",
                                   null);

            assertion.addAttribute("ID", "foo3", null);
View Full Code Here

            assertion.addAttribute("ID", "foo3", null);
            assertion.addAttribute("Version", "2.0", null);
            assertion.addAttribute("IssueInstant", strCurrentDate, null);

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

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

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

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

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

View Full Code Here

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

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


            String nameIdSubject = userName;

            nameID.setText(nameIdSubject);
View Full Code Here

            String nameIdSubject = userName;

            nameID.setText(nameIdSubject);
            OMElement conditions =
                factory.createOMElement("Conditions", saml, assertion);
            conditions.addAttribute("NotBefore", strCurrentDate, null);
            conditions.addAttribute("NotOnOrAfter", strExpireDate, null);

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

                factory.createOMElement("Conditions", saml, assertion);
            conditions.addAttribute("NotBefore", strCurrentDate, null);
            conditions.addAttribute("NotOnOrAfter", strExpireDate, null);

            OMElement authnStatement =
                factory.createOMElement("AuthnStatement", saml, assertion);
            authnStatement.addAttribute("AuthnInstant",
                                        artifactRequest.getIssueInstant(),
                                        null);

            OMElement authnContext =
View Full Code Here

            authnStatement.addAttribute("AuthnInstant",
                                        artifactRequest.getIssueInstant(),
                                        null);

            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");
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.