Realm name in tomcat (web.xml)

前端 未结 2 1706
[愿得一人]
[愿得一人] 2021-02-19 06:50

What is the realm-name in the tomcat.

 
     BASIC 
      


        
相关标签:
2条回答
  • 2021-02-19 07:15

    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.

    0 讨论(0)
  • 2021-02-19 07:20

    The value <realm-name> element is used to calculate the digested value of a cleartext password, as described here http://tomcat.apache.org/tomcat-7.0-doc/realm-howto.html#Digested_Passwords

    If <realm-name> element is not specified in web.xml, the default value of "Authentication required" is used.

    0 讨论(0)
提交回复
热议问题