Class AuthModuleUtil

  • Direct Known Subclasses:
    LoginModuleUtil

    public class AuthModuleUtil
    extends java.lang.Object
    Common utils for implementing authentication module.
    Since:
    8.0
    See Also:
    AuthModuleType
    • Field Detail

      • ALLOW_CREATING_NEW_USERS_BY_LOGIN_ATTRIBUTE

        @NotNull
        public static final java.lang.String ALLOW_CREATING_NEW_USERS_BY_LOGIN_ATTRIBUTE
        See Also:
        Constant Field Values
      • ALLOW_ALL_USERS_TO_LOGIN_ATTRIBUTE

        @NotNull
        public static final java.lang.String ALLOW_ALL_USERS_TO_LOGIN_ATTRIBUTE
        See Also:
        Constant Field Values
    • Constructor Detail

      • AuthModuleUtil

        public AuthModuleUtil()
    • Method Detail

      • allowCreatingNewUsersByLogin

        public static boolean allowCreatingNewUsersByLogin​(@NotNull
                                                           java.util.Map<java.lang.String,​?> options,
                                                           boolean defaultValue)
        Extracts the value of ALLOW_CREATING_NEW_USERS_BY_LOGIN_ATTRIBUTE option from options map.
        Parameters:
        options - options map
        defaultValue - default value for the case when option is absent in map
        Returns:
        value of the ALLOW_CREATING_NEW_USERS_BY_LOGIN_ATTRIBUTE option or default value if option is absent in map