1.6.4. 配置 SASL 身份验证机制属性


您可以在服务器端和客户端上配置身份验证机制属性。

  • 在服务器端,您可以在 可配置-sasl-server-factory 中定义身份验证机制属性。以下示例定义了 com.sun.security.sasl.digest.utf8 属性,其值为 false

    /subsystem=elytron/configurable-sasl-server-factory=mySASLServerFactory:map-put(name=properties,key=com.sun.security.sasl.digest.utf8,value=false)
    Copy to Clipboard Toggle word wrap
  • 在客户端,您可以在客户端的身份验证配置中定义身份验证机制属性:

    • elytron 子系统中,在您的身份验证配置中定义 身份验证机制属性。以下示例定义了 wildfly.sasl.local-user.quiet-auth 属性,其值为 true

      /subsystem=elytron/authentication-configuration=myAuthConfig:map-put(name=mechanism-properties,key=wildfly.sasl.local-user.quiet-auth,value=true)
      Copy to Clipboard Toggle word wrap
    • 对于 Elytron Client,身份验证机制属性在客户端 配置文件中 身份验证配置元素下指定, 通常名为 wildfly-config.xml。例如:

      ...
      <authentication-configurations>
        <configuration name="default">
          <sasl-mechanism-selector selector="#ALL" />
          <set-mechanism-properties>
            <property key="wildfly.sasl.local-user.quiet-auth" value="true" />
          </set-mechanism-properties>
          ...
        </configuration>
      </authentication-configurations>
      ...
      Copy to Clipboard Toggle word wrap

您可以在 Java 文档中的查看标准 Java SASL 身份验证机制属性列表。其他特定于 JBoss EAP 的 SASL 身份验证机制属性列在身份验证机制参考中

返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat