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 will fail if the user is not authenticated successfully or is not authorized to connect.
For JMS, use the following:
ConnectionFactory.createConnection(String userName, String password)
Parent topic: Micro broker clients: XPD621