Search in sources :

Example 1 with GraphBasedSequenceHandler

use of org.wso2.carbon.identity.application.authentication.framework.handler.sequence.impl.GraphBasedSequenceHandler in project carbon-identity-framework by wso2.

the class FrameworkUtils method getStepBasedSequenceHandler.

/**
 * Returns the step based sequence handler.
 * @return
 */
public static StepBasedSequenceHandler getStepBasedSequenceHandler() {
    StepBasedSequenceHandler stepBasedSequenceHandler;
    Object obj = ConfigurationFacade.getInstance().getExtensions().get(FrameworkConstants.Config.QNAME_EXT_STEP_BASED_SEQ_HANDLER);
    if (obj instanceof StepBasedSequenceHandler) {
        stepBasedSequenceHandler = (StepBasedSequenceHandler) obj;
    } else {
        stepBasedSequenceHandler = new GraphBasedSequenceHandler();
    }
    return stepBasedSequenceHandler;
}
Also used : GraphBasedSequenceHandler(org.wso2.carbon.identity.application.authentication.framework.handler.sequence.impl.GraphBasedSequenceHandler) JSONObject(org.json.JSONObject) StepBasedSequenceHandler(org.wso2.carbon.identity.application.authentication.framework.handler.sequence.StepBasedSequenceHandler)

Aggregations

JSONObject (org.json.JSONObject)1 StepBasedSequenceHandler (org.wso2.carbon.identity.application.authentication.framework.handler.sequence.StepBasedSequenceHandler)1 GraphBasedSequenceHandler (org.wso2.carbon.identity.application.authentication.framework.handler.sequence.impl.GraphBasedSequenceHandler)1