Add multi-attribute login property to the PreferenceRetrievalClient
@@ -56,9 +56,11 @@ public class PreferenceRetrievalClient {
private static final String USERNAME_RECOVERY_PROPERTY = "Recovery.Notification.Username.Enable";
private static final String NOTIFICATION_PASSWORD_RECOVERY_PROPERTY = "Recovery.Notification.Password.Enable";
private static final String QUESTION_PASSWORD_RECOVERY_PROPERTY = "Recovery.Question.Password.Enable";
+ private static final String MULTI_ATTRIBUTE_LOGIN_PROPERTY = "account.multiattributelogin.handler.enable";
private static final String CONNECTOR_NAME = "connector-name";
private static final String SELF_SIGN_UP_CONNECTOR = "self-sign-up";
private static final String RECOVERY_CONNECTOR = "account-recovery";
+ private static final String MULTI_ATTRIBUTE_LOGIN_HANDLER = "multiattribute.login.handler";
private static final String PROPERTY_NAME = "name";
private static final String PROPERTY_VALUE = "value";
@@ -125,6 +127,18 @@ public class PreferenceRetrievalClient {
return checkMultiplePreference(tenant, RECOVERY_CONNECTOR, propertyNameList);
}
+ /**
+ * Check multiple attribute login is enabled or not.
+ *
+ * @param tenant tenant domain name.
+ * @return returns true if password multi-attribute login enabled.
+ * @throws PreferenceRetrievalClientException
+ */
+ public boolean checkMultiAttributeLogin(String tenant) throws PreferenceRetrievalClientException {
+
+ return checkPreference(tenant, MULTI_ATTRIBUTE_LOGIN_HANDLER, MULTI_ATTRIBUTE_LOGIN_PROPERTY);
+ }
+
/**
* Check for preference in the given tenant.
*
