Search in sources :

Example 16 with Challenge

use of com.novell.ldapchai.cr.Challenge in project ldapchai by ldapchai.

the class NmasResponseSet method convertAnswerTextMap.

private static Map<Challenge, Answer> convertAnswerTextMap(final Map<Challenge, String> crMap) {
    final Map<Challenge, Answer> returnMap = new LinkedHashMap<>();
    for (final Map.Entry<Challenge, String> entry : crMap.entrySet()) {
        final Challenge challenge = entry.getKey();
        final String answerText = entry.getValue();
        returnMap.put(challenge, new NmasAnswer(answerText));
    }
    return returnMap;
}
Also used : Answer(com.novell.ldapchai.cr.Answer) HashMap(java.util.HashMap) LinkedHashMap(java.util.LinkedHashMap) Map(java.util.Map) Challenge(com.novell.ldapchai.cr.Challenge) ChaiChallenge(com.novell.ldapchai.cr.ChaiChallenge) LinkedHashMap(java.util.LinkedHashMap)

Aggregations

Challenge (com.novell.ldapchai.cr.Challenge)16 ChaiChallenge (com.novell.ldapchai.cr.ChaiChallenge)9 ChaiChallengeSet (com.novell.ldapchai.cr.ChaiChallengeSet)6 ArrayList (java.util.ArrayList)6 LinkedHashMap (java.util.LinkedHashMap)5 ChallengeSet (com.novell.ldapchai.cr.ChallengeSet)4 ChaiValidationException (com.novell.ldapchai.exception.ChaiValidationException)4 ErrorInformation (password.pwm.error.ErrorInformation)4 IOException (java.io.IOException)3 HashMap (java.util.HashMap)3 Element (org.jdom2.Element)3 JDOMException (org.jdom2.JDOMException)3 PwmDataValidationException (password.pwm.error.PwmDataValidationException)3 SetupResponsesBean (password.pwm.http.bean.SetupResponsesBean)3 Answer (com.novell.ldapchai.cr.Answer)2 ResponseSet (com.novell.ldapchai.cr.ResponseSet)2 ChaiOperationException (com.novell.ldapchai.exception.ChaiOperationException)2 ChaiUnavailableException (com.novell.ldapchai.exception.ChaiUnavailableException)2 Reader (java.io.Reader)2 StringReader (java.io.StringReader)2