diff --git a/broker/src/main/java/io/moquette/spi/security/IAuthorizator.java b/broker/src/main/java/io/moquette/spi/security/IAuthorizator.java index 3d85c1b8..cba7ab5f 100644 --- a/broker/src/main/java/io/moquette/spi/security/IAuthorizator.java +++ b/broker/src/main/java/io/moquette/spi/security/IAuthorizator.java @@ -13,14 +13,14 @@ * * You may elect to redistribute this code under either of these licenses. */ + package io.moquette.spi.security; /** * ACL 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. + * 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. * * @author andrea */ @@ -28,11 +28,15 @@ public interface IAuthorizator { /** * Ask the implementation of the authorizator if the topic can be used in a publish. - * @param topic the topic to write to. - * @param user the user - * @param client the client + * + * @param topic + * the topic to write to. + * @param user + * the user + * @param client + * the client * @return true if the user from client can publish data on topic. - * */ + */ boolean canWrite(String topic, String user, String client); boolean canRead(String topic, String user, String client);