public interface OnAuthenticationCallback extends SynchronousCallback
AuthenticationException is thrown, no additional
credentials checks in other plugins are made and the client is
disconnected immediately with an CONNACK with the given return code.
Note: It's your responsibility to use proper caching in the checkCredentials method| Modifier and Type | Method and Description |
|---|---|
Boolean |
checkCredentials(ClientCredentialsData clientData)
Checks the credentials after a CONNECT message arrives.
|
priorityBoolean checkCredentials(ClientCredentialsData clientData) throws AuthenticationException
true when the authentication with the credentials was successful, false otherwiseclientData - the client credentialstrue when the authentication was successfulAuthenticationException - when you want the client to disconnect immediately with a given return codeCopyright © 2013-2018 dc-square GmbH. All Rights Reserved.