Examples of MockCatalinaResponse


Examples of org.picketlink.test.identity.federation.bindings.mock.MockCatalinaResponse

        request.setMethod("POST");

        request.setContext(this.spContext);

        MockCatalinaResponse response = new MockCatalinaResponse();
        ByteArrayOutputStream baos = new ByteArrayOutputStream();
        response.setOutputStream(baos);

        spAuthenticator.authenticate(request, response, new LoginConfig());

        return request.getUserPrincipal();
    }
View Full Code Here

Examples of org.picketlink.test.identity.federation.bindings.mock.MockCatalinaResponse

        request.setMethod("POST");

        request.setContext(this.spContext);

        MockCatalinaResponse catalinaResponse = new MockCatalinaResponse();
        ByteArrayOutputStream baos = new ByteArrayOutputStream();
        catalinaResponse.setOutputStream(baos);

        LoginConfig loginConfig = new LoginConfig();

        spAuthenticator.authenticate(request, catalinaResponse, loginConfig);
View Full Code Here

Examples of org.picketlink.test.identity.federation.bindings.mock.MockCatalinaResponse

        AuthnRequestType art = new SAML2Request().getAuthnRequestType(new ByteArrayInputStream(base64Decode));

        // now let's send the previous AuthnRequest to the IDP and authenticate an user. The IDP should return a valid and
        // signed SAML Response.
        MockCatalinaResponse response = new MockCatalinaResponse();
        ByteArrayOutputStream baos = new ByteArrayOutputStream();
        response.setOutputStream(baos);

        String samlAuth = DocumentUtil.getDocumentAsString(new SAML2Request().convert(art));

        String samlMessage = Base64.encodeBytes(samlAuth.getBytes());
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.