JBoss "other" 安全域

JBoss "other" security domain

JBoss中另一个安全域的意义是什么。我是 JBoss 的新手,阅读了文档但不明白为什么要使用它。

<security-domain name="other" cache-type="default">
  <authentication>
    <login-module code="Remoting" flag="optional">
      <module-option name="password-stacking" value="useFirstPass"/>
    </login-module>
    <login-module code="RealmDirect" flag="required">
      <module-option name="password-stacking" value="useFirstPass"/>
    </login-module>
  </authentication>
</security-domain>

如果我只删除这两个模块会怎样?假设我的应用程序定义了我自己的域特定安全域。

您可以在 JBoss 中配置各种安全域元素。如果您想为不同的 war 设置不同的安全级别,可以通过不同 Web 项目中的 jboss-web.xml 文件引用它们。

otherdefault 安全域。它可以被删除(用更复杂的东西替换),只需确保也删除它的引用。