Package io.moquette.broker.security
Class ACLFileParser
- java.lang.Object
-
- io.moquette.broker.security.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 Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static io.moquette.broker.security.AuthorizationsCollectorparse(File file)Parse the configuration from file.static io.moquette.broker.security.AuthorizationsCollectorparse(Reader reader)Parse the ACL configuration file
-
-
-
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.
-
-