The JMS client allows for an authentication property as part of the connect message. This property consists of a user ID and password. There is no size limitation. The connection fails if the user is not authenticated successfully or is not authorized to connect.
For JMS, use the following:
Parent topic: Micro broker client
ConnectionFactory.createConnection(String userName, String password)