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;
}
Aggregations