Retrieving a Broker Server's Certificate
You can use the BrokerClient.getBrokerSSLCertificate method to obtain information about the SSL certificate of the Broker Server to which your Broker client is connected. A getBrokerSSLCertificate object is returned by this method and contains information such as the Broker's distinguished name and the certificate authority that issued the Broker's certificate.