java - DD段落中的认证类型混淆

标签 java authentication basic-authentication declarative-security

谁能告诉我为什么以下段落不正确:

If your deployment descriptor correctly declares an authentication type of BASIC, the container automatically requests a user name and password whenever a user starts a new session.

最佳答案

因为当用户尝试访问 protected 资源(如描述符中定义)时,容器只会请求(如“向浏览器发送身份验证质询”)用户名/密码;不是在创建用户 session 时。

详情见JavaEE tutorial

关于java - DD段落中的认证类型混淆,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1349170/

相关文章:

java - 用 Ant build : dynamic build options?

java - BaseCertLoginModule 不知道如何从 : class java. lang.String 获取 X509Certificate

authentication - Spring Security Core不会解密密码

c# - 如何将用户重定向到不同的服务器并包含 HTTP 基本身份验证凭据?

django - Tastypie 请求用户在注销方法上是匿名的

java - 如何从另一个类中调用字符串

java - 启用/禁用与某些方法关联的 JButton

java - 普通 Json 字符串到 HashMap

javascript - 如何在没有 SSL/TLS 的情况下实现基于表单的身份验证

python - 使用python的请求模块通过单选按钮登录网站