@Override public List<UserPrompt> getCurrentPrompts() throws PwmUnrecoverableException { final Map<String, String> nextPrompts = naafLoginSequence.nextPrompt(locale); final List<UserPrompt> returnObj = new ArrayList<>(); for (final String key : nextPrompts.keySet()) { returnObj.add(new UserPromptImpl(key, nextPrompts.get(key))); } return returnObj; }
@Override public ErrorInformation respondToPrompts(Map<String, String> answers) throws PwmUnrecoverableException { final String errorMsg = naafLoginSequence.answerPrompts(answers); if (errorMsg == null) { return null; } return new ErrorInformation(PwmError.ERROR_REMOTE_ERROR_VALUE, errorMsg); }
@Override public VerificationState getVerificationState() { return naafLoginSequence.status(); }
@Override public String getCurrentDisplayInstructions() { final String key = "Display_NAAF_" + naafLoginSequence.currentMethod(); return LocaleHelper.getLocalizedMessage(locale, key, pwmApplication.getConfig(), Display.class); }