Package org.apache.cxf.fediz.core

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


        FederationContext fedContext = federationConfig.getFederationContext();
        if (LOG.isDebugEnabled()) {
            LOG.debug("Federation context: " + fedContext);
        }
        try {
            FederationProcessor wfProc = new FederationProcessorImpl();
            redirectUrl = wfProc.createSignInRequest(servletRequest, fedContext);
            if (redirectUrl == null) {
                LOG.warn("Failed to create SignInRequest. Redirect URL null");
                throw new ServletException("Failed to create SignInRequest. Redirect URL null");
            }
        } catch (ProcessingException ex) {
View Full Code Here


            if (LOG.isDebugEnabled()) {
                LOG.debug("Process SignIn request");
                LOG.debug("wresult=\n" + wfReq.getWresult());
            }
           
            FederationProcessor wfProc = new FederationProcessorImpl();
            try {
                wfRes = wfProc.processRequest(wfReq, config);
            } catch (ProcessingException ex) {
                LOG.warn("Federation processing failed: " + ex.getMessage());
                return null;
            }
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);
            return new FederationAuthenticationToken(userDetails, authentication.getCredentials(),
                    authoritiesMapper.mapAuthorities(userDetails.getAuthorities()), userDetails, wfRes);
View Full Code Here

        FederationContext fedContext = federationConfig.getFederationContext();
        if (LOG.isDebugEnabled()) {
            LOG.debug("Federation context: " + fedContext);
        }
        try {
            FederationProcessor wfProc = new FederationProcessorImpl();
            redirectUrl = wfProc.createSignInRequest(servletRequest, fedContext);
            if (redirectUrl == null) {
                LOG.warn("Failed to create SignInRequest. Redirect URL null");
                throw new ServletException("Failed to create SignInRequest. Redirect URL null");
            }
        } catch (ProcessingException ex) {
View Full Code Here

        FederationContext fedContext = federationConfig.getFederationContext();
        if (LOG.isDebugEnabled()) {
            LOG.debug("Federation context: " + fedContext);
        }
        try {
            FederationProcessor wfProc = new FederationProcessorImpl();
            redirectUrl = wfProc.createSignInRequest(hrequest, fedContext);
            if (redirectUrl == null) {
                LOG.warn("Failed to create SignInRequest.");
                hresponse.sendError(
                        HttpServletResponse.SC_INTERNAL_SERVER_ERROR, "Failed to create SignInRequest.");
            }
View Full Code Here

        }
    }

    protected void redirectToIdp(HttpServletRequest request, HttpServletResponse response)
        throws IOException, WebTrustAssociationFailedException {
        FederationProcessor processor = new FederationProcessorImpl();

        String contextName = request.getContextPath();
        if (contextName == null || contextName.isEmpty()) {
            contextName = "/";
        }
        FederationContext fedCtx = getFederationContext(request);

        String redirectURL = null;
        StringBuilder sb = new StringBuilder();

        try {
            redirectURL = processor.createSignInRequest(request, fedCtx);
            if (redirectURL != null) {
                sb.append(redirectURL);

            }
            request.getQueryString();
View Full Code Here

        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);
            return new FederationAuthenticationToken(userDetails, authentication.getCredentials(),
                    userDetails.getAuthorities(), userDetails, wfRes);
View Full Code Here

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

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

        fedContext.close();

        Element e = wfResp.getToken();
       
View Full Code Here

TOP

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

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.