Class PlccomMqttClientEnhancedAuthResponse


  • public final class PlccomMqttClientEnhancedAuthResponse
    extends Object
    Response returned by a client-side MQTT 5 enhanced authentication handler.
    • Method Detail

      • continueWith

        public static PlccomMqttClientEnhancedAuthResponse continueWith​(String authenticationMethod,
                                                                        byte[] authenticationData)
        Creates the next client AUTH response for an MQTT 5 enhanced authentication exchange.
        Parameters:
        authenticationMethod - MQTT 5 Authentication Method to send back to the broker; this normally matches the method received from the broker
        authenticationData - MQTT 5 Authentication Data to send, or null for no data
        Returns:
        response object
        Throws:
        NullPointerException - if authenticationMethod is null
        IllegalArgumentException - if authenticationMethod is empty
      • getAuthenticationMethod

        public String getAuthenticationMethod()
        Returns the MQTT 5 Authentication Method to send in the AUTH response.
        Returns:
        authentication method, never null
      • getAuthenticationData

        public byte[] getAuthenticationData()
        Returns a defensive copy of the MQTT 5 Authentication Data to send.
        Returns:
        authentication data, or null when no data should be sent