Package org.picketlink.identity.federation.core.wstrust.writers

Examples of org.picketlink.identity.federation.core.wstrust.writers.WSTrustResponseWriter


        RequestSecurityTokenResponseCollection responseCollection = new RequestSecurityTokenResponseCollection();
        responseCollection.addRequestSecurityTokenResponse(response);

        try {
            DOMResult result = new DOMResult(DocumentUtil.createDocument());
            WSTrustResponseWriter writer = new WSTrustResponseWriter(result);
            writer.write(responseCollection);
            return new DOMSource(result.getNode());
        } catch (Exception e) {
            throw logger.stsWSResponseWritingError(e);
        }
    }
View Full Code Here


                .parse(configStream);
        assertNotNull(responseCollection);

        // Now for the writing part
        ByteArrayOutputStream baos = new ByteArrayOutputStream();
        WSTrustResponseWriter rstrWriter = new WSTrustResponseWriter(baos);

        rstrWriter.write(responseCollection);

        byte[] data = baos.toByteArray();
        Logger.getLogger(WSTrustRenewTargetParsingTestCase.class).debug(new String(data));
        Document doc = DocumentUtil.getDocument(new ByteArrayInputStream(data));
        JAXPValidationUtil.validate(DocumentUtil.getNodeAsStream(doc));
View Full Code Here

TOP

Related Classes of org.picketlink.identity.federation.core.wstrust.writers.WSTrustResponseWriter

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.