broker/Topic: class added
broker/Topic: String Topics replaced by Topic class broker/Topic#parseTopic: access set to private broker/SubscriptionsStoreTest: topic tests moved to own class broker/TopicTest: containsExactly used broker/TopicTest: TopicAssert class added broker/TopicTest$TopicAssert#containsToken: method added broker/TopicTest$TopicAssert#matches: method added
This commit is contained in:
@@ -16,6 +16,8 @@
|
||||
|
||||
package io.moquette.spi.security;
|
||||
|
||||
import io.moquette.spi.impl.subscriptions.Topic;
|
||||
|
||||
/**
|
||||
* ACL checker.
|
||||
*
|
||||
@@ -37,7 +39,7 @@ public interface IAuthorizator {
|
||||
* the client
|
||||
* @return true if the user from client can publish data on topic.
|
||||
*/
|
||||
boolean canWrite(String topic, String user, String client);
|
||||
boolean canWrite(Topic topic, String user, String client);
|
||||
|
||||
boolean canRead(String topic, String user, String client);
|
||||
boolean canRead(Topic topic, String user, String client);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user