Package org.wso2.carbon.identity.sts.passive.processors

Examples of org.wso2.carbon.identity.sts.passive.processors.RequestProcessor.process()


                SSOSessionPersistenceManager sessionPersistenceManager = SSOSessionPersistenceManager.getPersistenceManager();
                boolean isExistingSession = sessionPersistenceManager.isExistingSession(sessionId);
                if(authnMode.equals(SAMLSSOConstants.AuthnModes.OPENID) && !isExistingSession){
                    AuthnRequestProcessor authnRequestProcessor = new AuthnRequestProcessor();
                    try {
                        return authnRequestProcessor.process(validationResp, sessionId, rpSessionId, authnMode);
                    } catch (Exception e) {
                        throw new IdentityException("Error processing the Authentication Request", e);
                    }
                }
                if (isExistingSession) {
View Full Code Here


                    }
                }
                if (isExistingSession) {
                    AuthnRequestProcessor authnRequestProcessor = new AuthnRequestProcessor();
                    try {
                        return authnRequestProcessor.process(validationResp, sessionId, rpSessionId, authnMode);
                    } catch (Exception e) {
                        throw new IdentityException("Error processing the Authentication Request", e);
                    }
                }
            }
View Full Code Here

    }

    public SAMLSSORespDTO authenticate(SAMLSSOAuthnReqDTO authReqDTO, String sessionId) throws IdentityException {
        AuthnRequestProcessor authnRequestProcessor = new AuthnRequestProcessor();
        try {
            return authnRequestProcessor.process(authReqDTO, sessionId, false,
                                                 SAMLSSOConstants.AuthnModes.USERNAME_PASSWORD);
        } catch (Exception e) {
            throw new IdentityException("Error when authenticating the users", e);
        }
    }
View Full Code Here

            validationResp.setRpSessionId(rpSessionId);
            return validationResp;
        }
        else if(request instanceof LogoutRequest){
            LogoutRequestProcessor logoutReqProcessor = new LogoutRequestProcessor();
            SAMLSSOReqValidationResponseDTO validationResponseDTO = logoutReqProcessor.process(
                    (LogoutRequest)request, sessionId);
            return validationResponseDTO;
        }

        return null;
View Full Code Here

        }
    }

    public SAMLSSOReqValidationResponseDTO doSingleLogout(String sessionId) throws IdentityException {
         LogoutRequestProcessor logoutReqProcessor = new LogoutRequestProcessor();
            SAMLSSOReqValidationResponseDTO validationResponseDTO = logoutReqProcessor.process(null, sessionId);
            return validationResponseDTO;
    }

}
View Full Code Here

        processor = RequestProcessorFactory.getInstance().getRequestProcessor(request.getAction());

        if (processor != null) {
            try {
                responseToken = processor.process(request);
            } catch (TrustException e) {
                soapfault = genFaultResponse(MessageContext.getCurrentMessageContext(), "Sender",
                        "InvalidRequest", e.getMessage(), "none").toStringWithConsume();
            }
        } else {
View Full Code Here

                CarbonUIFragmentInitializer callbackHandler = (CarbonUIFragmentInitializer) uiInitializerObj;
                if (log.isDebugEnabled()) {
                    log.debug("Invoking CarbonUIFragmentInitilizer.process() - "
                            + uiInitializerObj.getClass().getName());
                }
                callbackHandler.process();
            } else {
                String msg = "UI fragment initilizer class should be of type " +
                        "org.wso2.carbon.ui.ext.CarbonUIFragmentInitilizer";
                log.error(msg);
                throw new CarbonException(msg);
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.