/******************************************************************************* *******************************************************************************/ package at.asitplus.eidas.specific.modules.authmodule_eIDASv2; import org.apache.commons.lang3.StringUtils; import at.asitplus.eidas.specific.connector.MSeIDASNodeConstants; import at.gv.egiz.eaaf.core.api.idp.auth.modules.AuthModule; import at.gv.egiz.eaaf.core.api.idp.process.ExecutionContext; /** * @author tlenz * */ public class eIDASAuthenticationModulImpl implements AuthModule { private int priority = 1; @Override public int getPriority() { return priority; } /** * Sets the priority of this module. Default value is {@code 0}. * @param priority The priority. */ public void setPriority(int priority) { this.priority = priority; } /* (non-Javadoc) * @see at.gv.egovernment.moa.id.auth.modules.AuthModule#selectProcess(at.gv.egovernment.moa.id.process.api.ExecutionContext) */ @Override public String selectProcess(ExecutionContext context) { if (StringUtils.isNotBlank((String) context.get(MSeIDASNodeConstants.REQ_PARAM_SELECTED_COUNTRY)) || StringUtils.isNotBlank((String) context.get(MSeIDASNodeConstants.REQ_PARAM_SELECTED_COUNTRY))) return "eIDASAuthentication_v2"; else return null; } /* (non-Javadoc) * @see at.gv.egovernment.moa.id.auth.modules.AuthModule#getProcessDefinitions() */ @Override public String[] getProcessDefinitions() { return new String[] { "classpath:eIDAS.Authentication.process.xml" }; } }