关于Acegi的User类的几个属性的意义。
来源:互联网 发布:淘宝网查号 编辑:程序博客网 时间:2024/06/06 12:30
今天在Spring Forum的AcegiSecurity版发了个问题:
What's meaning of credentialsNonExpired...?
I don't know some propertise of org.acegisecurity.userdetails.user class, such as credentialsNonExpired. I don't know the difference among enabled, accountNonExpired and accountNonLocked.
以下是Andreas Senft的回复:
"Enabled" just means that you can use the account. This flag can be used adminstratively to disable an account without deleting it.
Account expiry causes you to change your password in determined intervals. If you fail to do so, your account will expire and you cannot use it. The flag indicates if your account has (not) expired.
A locked account is a different thing. If you, for example, enter three times a wrong password, your account might be locked, but it is not expired.
The flag tells you if your account is (not) locked.
Hope that helps,
Andreas
Account expiry causes you to change your password in determined intervals. If you fail to do so, your account will expire and you cannot use it. The flag indicates if your account has (not) expired.
A locked account is a different thing. If you, for example, enter three times a wrong password, your account might be locked, but it is not expired.
The flag tells you if your account is (not) locked.
Hope that helps,
Andreas
- 关于Acegi的User类的几个属性的意义。
- 关于hibernate中generator属性的意义
- 几个关于换行的属性
- 关于acegi配置的不错的讲解
- 关于Acegi配置文件中filterChainProxy的属性filterInvocationDefinitionSource的解析问题
- 关于Acegi中Acl权限的使用
- 关于ssh+acegi+mail的应用
- 关于Sockt的几个个属性
- Android 关于ListView几个特别的属性
- 关于HTML5 data-*属性的几个坑
- User Agent中对应的参数意义
- 关于STL的意义
- 关于家的意义
- 关于typedef的意义
- 关于ShareCompat的意义
- Acegi applicationContext-acegi-security.xml的配置
- FormBorderStyle的属性及意义
- @property 属性参数的意义
- Driver Development Part 1: Introduction to Drivers
- Driver Development Part 2: Introduction to Implementing IOCTLs
- 利用 .NET Printing 命名空间从 Windows 窗体应用程序中进行预览和打印
- 安全稳定的实现进线程监控
- 微软原版XP专业版ISO镜像(SP2)
- 关于Acegi的User类的几个属性的意义。
- Writing a Winsock 2 Layered Service Provider
- gloomy的《内存与进程管理器》
- Netscreen密码恢复
- OpenGL Performance Optimization
- Java笔记4
- 喜得房屋
- 关于"建立新文档失败"的问题!
- 隐藏ie工具栏