Interface IAuthorizatorPolicy

  • All Known Implementing Classes:
    DenyAllAuthorizatorPolicy, PermitAllAuthorizatorPolicy

    public interface IAuthorizatorPolicy
    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.
    • 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 user
        client - the client
        Returns:
        true if the user from client can publish data on topic.