Enum BuiltinUserAuthFactories

    • Constructor Detail

      • BuiltinUserAuthFactories

        private BuiltinUserAuthFactories​(UserAuthFactory factory)
    • Method Detail

      • values

        public static BuiltinUserAuthFactories[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (BuiltinUserAuthFactories c : BuiltinUserAuthFactories.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static BuiltinUserAuthFactories valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface NamedResource
        Returns:
        The resource name
      • fromFactoryName

        public static UserAuthFactory fromFactoryName​(java.lang.String name)
        Parameters:
        name - The factory name (case insensitive) - ignored if null/empty
        Returns:
        The matching factory instance - null if no match found
      • parseFactoriesList

        public static BuiltinUserAuthFactories.ParseResult parseFactoriesList​(java.lang.String factories)
        Parameters:
        factories - A comma-separated list of factories' names - ignored if null/empty
        Returns:
        A BuiltinUserAuthFactories.ParseResult containing the successfully parsed factories and the unknown ones. Note: it is up to caller to ensure that the lists do not contain duplicates
      • resolveFactory

        public static UserAuthFactory resolveFactory​(java.lang.String name)