package at.gv.egiz.eaaf.core.impl.idp.auth.service; import java.util.Collections; import java.util.Map; import org.apache.commons.lang3.RandomStringUtils; import at.gv.egiz.eaaf.core.api.IRequest; import at.gv.egiz.eaaf.core.impl.idp.auth.services.IErrorServiceModelHandler; public class DummyErrorGuiModelHandler implements IErrorServiceModelHandler { @Override public Map elementsForErrorModel(IRequest pendingReq) { if (pendingReq.getSpEntityId() != null) { return Collections.singletonMap("test", RandomStringUtils.randomAlphanumeric(10)); } else { return Collections.emptyMap(); } } }