broker/IAuthorizator: code formatter used

This commit is contained in:
Andreas Mager
2017-02-01 17:13:41 +01:00
parent 997da1f497
commit 687c66d7ec
@@ -13,14 +13,14 @@
* *
* You may elect to redistribute this code under either of these licenses. * You may elect to redistribute this code under either of these licenses.
*/ */
package io.moquette.spi.security; package io.moquette.spi.security;
/** /**
* ACL checker. * ACL checker.
* *
* Create an authorizator that matches topic names with same grammar of subscriptions. * Create an authorizator that matches topic names with same grammar of subscriptions. The # is
* The # is always a terminator and its the multilevel matcher. * always a terminator and its the multilevel matcher. The + sign is the single level matcher.
* The + sign is the single level matcher.
* *
* @author andrea * @author andrea
*/ */
@@ -28,11 +28,15 @@ public interface IAuthorizator {
/** /**
* Ask the implementation of the authorizator if the topic can be used in a publish. * 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 topic
* @param client the client * 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. * @return true if the user from client can publish data on topic.
* */ */
boolean canWrite(String topic, String user, String client); boolean canWrite(String topic, String user, String client);
boolean canRead(String topic, String user, String client); boolean canRead(String topic, String user, String client);