Package com.plccom.mqtt.client
Interface PlccomMqttClientEnhancedAuthenticator
-
public interface PlccomMqttClientEnhancedAuthenticatorHandles broker AUTH challenges during MQTT 5 enhanced authentication.The callback is executed synchronously while the client is connecting. A slow implementation directly increases CONNECT latency and can make reconnects slower. Implementations should avoid blocking I/O unless the surrounding application has explicitly accepted that trade-off.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PlccomMqttClientEnhancedAuthResponseauthenticate(PlccomMqttClientEnhancedAuthContext context)Produces the next AUTH response for a broker challenge.
-
-
-
Method Detail
-
authenticate
PlccomMqttClientEnhancedAuthResponse authenticate(PlccomMqttClientEnhancedAuthContext context) throws PlccomMqttException
Produces the next AUTH response for a broker challenge.- Parameters:
context- challenge context supplied by the broker- Returns:
- AUTH response to send back to the broker
- Throws:
PlccomMqttException- if the application cannot produce a valid response or wants to abort the CONNECT attempt
-
-