I want to know where and how hivemq community edition checks for authentication of user and password

what are the changes needs to be done in RBAC file, to use SimpleAuthenticator to build my own DB based extension. can you provide anything that can help me to build my own DB based extension.
Thanks for all the above solutions.