Package io.moquette.broker.security
Interface IAuthorizatorPolicy
-
- All Known Implementing Classes:
DenyAllAuthorizatorPolicy,PermitAllAuthorizatorPolicy
public interface IAuthorizatorPolicyACL checker. Create an authorizator that matches topic names with same grammar of subscriptions. The # is always a terminator and its the multilevel matcher. The + sign is the single level matcher.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancanRead(Topic topic, String user, String client)booleancanWrite(Topic topic, String user, String client)Ask the implementation of the authorizator if the topic can be used in a publish.
-
-
-
Method Detail
-
canWrite
boolean canWrite(Topic topic, String user, String client)
Ask the implementation of the authorizator if the topic can be used in a publish.- Parameters:
topic- the topic to write to.user- the userclient- the client- Returns:
- true if the user from client can publish data on topic.
-
-