Package org.apache.cxf.fediz.core

Examples of org.apache.cxf.fediz.core.FederationRequest


        return subject;
    }

    public FederationResponse processSigninRequest(HttpServletRequest req, HttpServletResponse resp)
        throws ProcessingException {
        FederationRequest federationRequest = new FederationRequest();

        String wa = req.getParameter(FederationConstants.PARAM_ACTION);
        String wct = req.getParameter(FederationConstants.PARAM_CURRENT_TIME);
        String wresult = req.getParameter(FederationConstants.PARAM_RESULT);

        if (LOG.isDebugEnabled()) {
            LOG.debug("wa=" + wa);
            LOG.debug("wct=" + wct);
            LOG.debug("wresult=" + wresult);
        }

        federationRequest.setWa(wa);
        federationRequest.setWct(wct);
        federationRequest.setWresult(wresult);

        FederationContext fedCtx = getFederationContext(req);

        FederationProcessor processor = new FederationProcessorImpl();
        return processor.processRequest(federationRequest, fedCtx);
View Full Code Here


    }

    private FederationAuthenticationToken authenticateNow(final Authentication authentication)
        throws AuthenticationException {
        try {
            FederationRequest wfReq = (FederationRequest)authentication.getCredentials();
            FederationProcessor wfProc = new FederationProcessorImpl();
            FederationResponse wfRes = wfProc.processRequest(wfReq, federationConfig.getFederationContext());

            final UserDetails userDetails = loadUserByFederationResponse(wfRes);
            userDetailsChecker.check(userDetails);
View Full Code Here

        }

        FederationContext fedContext = getFederationContext(idpConfig,
                trustedIDPConfig);

        FederationRequest wfReq = new FederationRequest();
        wfReq.setWa(FederationConstants.ACTION_SIGNIN);
        wfReq.setWresult(wresult);

        FederationProcessor wfProc = new FederationProcessorImpl();
        FederationResponse wfResp = wfProc.processRequest(wfReq, fedContext);

        fedContext.close();
View Full Code Here

TOP

Related Classes of org.apache.cxf.fediz.core.FederationRequest

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.