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)在客户端,您可以在客户端的身份验证配置中定义身份验证机制属性:
在
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)对于 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> ...
您可以在 Java 文档中的查看标准 Java SASL 身份验证机制属性列表。其他特定于 JBoss EAP 的 SASL 身份验证机制属性列在身份验证机制参考中。