package com.github.longkerdandy.mithril.mqtt.api;

import java.util.concurrent.CompletableFuture;

/**
 * Authenticator
 */
public interface Authenticator {

    /**
     * Authorize client CONNECT
     *
     * @param clientId Client Id
     * @param userName User Name provided in CONNECT
     * @param password Password provided in CONNECT
     * @return Authorize Result
     */
    CompletableFuture<AuthorizeResult> authConnect(String clientId, String userName, String password);
}

@@ -263,36 +263,16 @@
 ser Name
- provided in CONNECT
 %0A     * 
@@ -299,28 +299,336 @@
 word
- provided in CONNECT
+%0A     * @return Authorize Result%0A     */%0A    CompletableFuture%3CAuthorizeResult%3E authConnect(String clientId, String userName, String password);%0A%0A    /**%0A     * Authorize client PUBLISH%0A     *%0A     * @param clientId  Client Id%0A     * @param userName  User Name%0A     * @param topicName Topic Name%0A     * @param qos       QoS Level
 %0A   
@@ -699,39 +699,39 @@
 rizeResult%3E auth
-Connect
+Publish
 (String clientId
@@ -756,21 +756,34 @@
  String 
-password
+topicName, String qos
 );%0A%7D%0A

add publish auth method