5.2.2. 远程 Jakarta Enterprise Beans 配置文件
JBoss EAP 具有 Elytron 安全框架。wildfly-config.xml 文件存在于客户端应用的类路径的 META-INF/ 目录中,允许针对 Elytron 安全框架和 Jakarta Enterprise Beans 客户端配置提供广泛的身份验证和授权选项。
<configuration>
<authentication-client xmlns="urn:elytron:client:1.2">
<authentication-rules>
<rule use-configuration="default" />
</authentication-rules>
<authentication-configurations>
<configuration name="default">
<sasl-mechanism-selector selector="DIGEST-MD5" />
<set-user-name name="admin" />
<credentials>
<clear-password password="password123!" />
</credentials>
</configuration>
</authentication-configurations>
</authentication-client>
<jboss-ejb-client xmlns="urn:jboss:wildfly-client-ejb:3.0">
<connections>
<connection uri="remote+http://127.0.0.1:8080" />
</connections>
</jboss-ejb-client>
</configuration>
作为在初始上下文中嵌入 PROVIDER_URL、SECURITY_PRINCIPAL 和 SECURITY_CREDENTIALS 参数的替代方案,您可以在 wildfly > 元素来配置连接 URI 和安全设置。
-config.xml 文件中分别使用 client<connection-uri> 和 <authentication-