Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.

3.5. Enable Broker-to-Broker Authentication in A-MQ


To enable authentication between 2 brokers, for example Broker A and Broker B, where Broker A is configured to perform authentication, you can configure Broker B to log on to Broker A by setting the userName attribute and the password attribute in the networkConnector element.
To configure the network connector follow the below instructions:
  • Assuming that Broker A is configured to connect to Broker B. Configure the Broker A's networkConnector element with username/password credentials as shown:
  • For example, the following settings would enable basic encryption using the MD5 message digest algorithm:
    <beans>
      <broker>
        <networkConnectors>
          <networkConnector name="BrokerABridge" userName="user" password="password" uri="static://(ssl://brokerA:61616)"/>
        </networkConnectors>
      </broker>
    </beans>
    
    Copy to Clipboard Toggle word wrap
    Here Broker A's authentication plug-in checks for Broker A's username. For example, if Broker A has its authentication configured by a simpleAuthenticationPlugin element, Broker A's username must appears in this element.
The encryption settings in the org.apache.karaf.jaas.cfg file are applied only to the default karaf realm in a standalone container.
Nach oben
Red Hat logoGithubredditYoutubeTwitter

Lernen

Testen, kaufen und verkaufen

Communitys

Über Red Hat Dokumentation

Wir helfen Red Hat Benutzern, mit unseren Produkten und Diensten innovativ zu sein und ihre Ziele zu erreichen – mit Inhalten, denen sie vertrauen können. Entdecken Sie unsere neuesten Updates.

Mehr Inklusion in Open Source

Red Hat hat sich verpflichtet, problematische Sprache in unserem Code, unserer Dokumentation und unseren Web-Eigenschaften zu ersetzen. Weitere Einzelheiten finden Sie in Red Hat Blog.

Über Red Hat

Wir liefern gehärtete Lösungen, die es Unternehmen leichter machen, plattform- und umgebungsübergreifend zu arbeiten, vom zentralen Rechenzentrum bis zum Netzwerkrand.

Theme

© 2025 Red Hat