Class KbaConfig


  • public final class KbaConfig
    extends Object
    Represents a single KBA question in various Locales.
    Since:
    0.2.0
    • Constructor Detail

      • KbaConfig

        public KbaConfig()
    • Method Detail

      • getKbaPropertyName

        public String getKbaPropertyName()
        Gets the property name in user json instance where kba details will be set.
        Returns:
        property name
      • setKbaPropertyName

        public KbaConfig setKbaPropertyName​(String kbaPropertyName)
        Sets the property name in user json instance where kba details will be set.
        Parameters:
        kbaPropertyName - the property name
        Returns:
        this config instance
      • getQuestions

        public Map<String,​Map<String,​String>> getQuestions()
        Gets the kba questions. The questions will be in the format of: { "1": { "en": "What's your favorite color?", "en_GB": "What is your favourite colour?", "fr": "Quelle est votre couleur préférée?" }, "2": { "en": "Who was your first employer?" } }
        Returns:
        property name
      • setQuestions

        public KbaConfig setQuestions​(Map<String,​Map<String,​String>> questions)
        Sets the kba questions. Questions will be in the format of: { "1": { "en": "What's your favorite color?", "en_GB": "What is your favourite colour?", "fr": "Quelle est votre couleur préférée?" }, "2": { "en": "Who was your first employer?" } } The number values above represent the questionId's and the inner string values represent the question locale and its translation.
        Parameters:
        questions - the kba question
        Returns:
        this config instance
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object