Package org.openxri.saml

Examples of org.openxri.saml.Assertion


                (oChild.getNamespaceURI() != null) &&
                oChild.getNamespaceURI().equals(Tags.NS_SAML) &&
                (oChild.getLocalName() != null) &&
                oChild.getLocalName().equals(Tags.TAG_ASSERTION))
            {
                moSAMLAssertion = new Assertion((Element) oChild);
            }

            // Added this code to support extensions in Authority Element
            else
            {
View Full Code Here


            oAttr.setValue("#" + oXRID.getXmlID());
            oAttr.setName(Tags.TAG_XRD);
            oAttrStatement.setAttribute(oAttr);

            // now we can create the true SAML Assertion
            Assertion oAssertion = new Assertion();
            NameID oIssuer = new NameID(Tags.TAG_ISSUER);
            oIssuer.setValue("World's Best");
            oAssertion.setIssuer(oIssuer);
            oAssertion.setSubject(oSubject);
            oAssertion.setAttrStatement(oAttrStatement);
            oXRID.setSAMLAssertion(oAssertion);

            oXRID.sign(oKP.getPrivate());
            oXRID.verifySignature(oKP.getPublic());
            String sXRID = oXRID.serializeDOM(false, true);
View Full Code Here

            oAttr.setValue("#" + oXRID.getXmlID());
            oAttr.setName(Tags.TAG_XRD);
            oAttrStatement.setAttribute(oAttr);

            // now we can create the true SAML Assertion
            Assertion oAssertion = new Assertion();
            NameID oIssuer = new NameID(Tags.TAG_ISSUER);
            oIssuer.setValue("World's Best");
            oAssertion.setIssuer(oIssuer);
            oAssertion.setSubject(oSubject);
            oAssertion.setAttrStatement(oAttrStatement);
            oXRID.setSAMLAssertion(oAssertion);

            oXRID.sign(oKP.getPrivate());
            oXRID.verifySignature(oKP.getPublic());
            String sXRID = oXRID.serializeDOM(false, true);
View Full Code Here

TOP

Related Classes of org.openxri.saml.Assertion

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.