tomcat 中的域名称 (web.xml) [英] Realm name in tomcat (web.xml)

查看:51
本文介绍了tomcat 中的域名称 (web.xml)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

tomcat 中的域名是什么.

What is the realm-name in the tomcat.

<login-config> 
     <auth-method>BASIC</auth-method> 
     <realm-name></realm-name> 
</login-config>

在上面的代码中,我必须填写领域名称元素.我在 server.xml 文件中看到了以下代码:

In the above code I have to fill the realm-name element. I have seen the following code in the server.xml file:

<Realm className="org.apache.catalina.realm.UserDatabaseRealm" 
            resourceName="UserDatabase"/>

域名在哪里指定?是用户名吗?

Where is the realm-name specified? Is it the user name?

推荐答案

域名称不是用户名.它是身份验证领域,通常是对正在访问的计算机或系统的描述" - 参见 http://en.wikipedia.org/wiki/Basic_access_authentication.这应该是对您正在保护的资源有意义的名称.

Realm name is not the user name. It is the authentication realm, 'typically a description of the computer or system being accessed" - see http://en.wikipedia.org/wiki/Basic_access_authentication. This should be name that makes sense for the resource you are protecting.

这篇关于tomcat 中的域名称 (web.xml)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆