Package org.picketlink.identity.federation.core.saml.v1.writers

Examples of org.picketlink.identity.federation.core.saml.v1.writers.SAML11AssertionWriter


        SAML11SubjectType.SAML11SubjectTypeChoice choice = subject.getChoice();
        assertEquals("myusername", choice.getNameID().getValue());

        ByteArrayOutputStream baos = new ByteArrayOutputStream();
        // Lets do the writing
        SAML11RequestWriter writer = new SAML11RequestWriter(StaxUtil.getXMLStreamWriter(baos));
        writer.write(request);
        String writtenString = new String(baos.toByteArray());
        System.out.println(writtenString);
        validateSchema(writtenString);
    }
View Full Code Here


        SAML11SubjectType.SAML11SubjectTypeChoice choice = subject.getChoice();
        assertEquals("testID", choice.getNameID().getValue());

        ByteArrayOutputStream baos = new ByteArrayOutputStream();
        // Lets do the writing
        SAML11RequestWriter writer = new SAML11RequestWriter(StaxUtil.getXMLStreamWriter(baos));
        writer.write(request);
        String writtenString = new String(baos.toByteArray());
        System.out.println(writtenString);
        validateSchema(writtenString);
    }
View Full Code Here

        assertEquals("create", action.getValue());
        assertEquals("http://www.jboss.org", action.getNamespace());

        ByteArrayOutputStream baos = new ByteArrayOutputStream();
        // Lets do the writing
        SAML11RequestWriter writer = new SAML11RequestWriter(StaxUtil.getXMLStreamWriter(baos));
        writer.write(request);
        String writtenString = new String(baos.toByteArray());
        System.out.println(writtenString);
        validateSchema(writtenString);
    }
View Full Code Here

        assertEquals("abcd", request.getAssertionArtifact().get(0));

        ByteArrayOutputStream baos = new ByteArrayOutputStream();
        // Lets do the writing
        SAML11RequestWriter writer = new SAML11RequestWriter(StaxUtil.getXMLStreamWriter(baos));
        writer.write(request);
        String writtenString = new String(baos.toByteArray());
        System.out.println(writtenString);
        validateSchema(writtenString);
    }
View Full Code Here

        assertEquals("abcd", request.getAssertionIDRef().get(0));

        ByteArrayOutputStream baos = new ByteArrayOutputStream();
        // Lets do the writing
        SAML11RequestWriter writer = new SAML11RequestWriter(StaxUtil.getXMLStreamWriter(baos));
        writer.write(request);
        String writtenString = new String(baos.toByteArray());
        System.out.println(writtenString);
        validateSchema(writtenString);
    }
View Full Code Here

        SAML11AssertionType assertion = assertions.get(0);
        assertEquals("buGxcG4gILg5NlocyLccDz6iXrUa", assertion.getID());

        ByteArrayOutputStream baos = new ByteArrayOutputStream();
        // Lets do the writing
        SAML11ResponseWriter writer = new SAML11ResponseWriter(StaxUtil.getXMLStreamWriter(baos));
        writer.write(response);
        String writtenString = new String(baos.toByteArray());
        Logger.getLogger(SAML11ResponseParserTestCase.class).debug(writtenString);
        validateSchema(writtenString);
    }
View Full Code Here

        SAML11AssertionType assertion = assertions.get(0);
        assertEquals("buGxcG4gILg5NlocyLccDz6iXrUa", assertion.getID());

        ByteArrayOutputStream baos = new ByteArrayOutputStream();
        // Lets do the writing
        SAML11ResponseWriter writer = new SAML11ResponseWriter(StaxUtil.getXMLStreamWriter(baos));
        writer.write(response);
        String writtenString = new String(baos.toByteArray());
        Logger.getLogger(SAML11ResponseParserTestCase.class).debug(writtenString);
        validateSchema(writtenString);
    }
View Full Code Here

            SAML11ResponseType saml11Response = new SAML11ResponseType(id, XMLTimeUtil.getIssueInstant());
            saml11Response.add(saml11Assertion);
            saml11Response.setStatus(SAML11StatusType.successType());

            ByteArrayOutputStream baos = new ByteArrayOutputStream();
            SAML11ResponseWriter writer = new SAML11ResponseWriter(StaxUtil.getXMLStreamWriter(baos));
            writer.write(saml11Response);

            Document samlResponse = DocumentUtil.getDocument(new ByteArrayInputStream(baos.toByteArray()));

            WebRequestUtilHolder holder = webRequestUtil.getHolder();
            holder.setResponseDoc(samlResponse).setDestination(target).setRelayState("").setAreWeSendingRequest(false)
View Full Code Here

TOP

Related Classes of org.picketlink.identity.federation.core.saml.v1.writers.SAML11AssertionWriter

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.