Class ACLFileParser


  • public final class ACLFileParser
    extends Object
    Parses the acl configuration file. If a line starts with # it's comment. Blank lines are skipped. The format is "topic [read|write|readwrite] {topic name}"
    • Method Detail

      • parse

        public static io.moquette.broker.security.AuthorizationsCollector parse​(File file)
                                                                         throws ParseException
        Parse the configuration from file.
        Parameters:
        file - to parse
        Returns:
        the collector of authorizations form reader passed into.
        Throws:
        ParseException - if the format is not compliant.
      • parse

        public static io.moquette.broker.security.AuthorizationsCollector parse​(Reader reader)
                                                                         throws ParseException
        Parse the ACL configuration file
        Parameters:
        reader - to parse
        Returns:
        the collector of authorizations form reader passed into.
        Throws:
        ParseException - if the format is not compliant.