Shiro:org.apache.shiro.authc.AuthenticationException
来源:互联网 发布:js时间转换日期格式 编辑:程序博客网 时间:2024/06/05 13:46
org.apache.shiro.authc.AuthenticationException: Authentication failed for token submission [org.apache.shiro.authc.UsernamePasswordToken - starzou, rememberMe=false]. Possible unexpected error? (Typical or expected login exceptions should extend from AuthenticationException)
<bean id="authorizingRealm" class="com.hk3t.core.security.CmsAuthorizingRealm"><property name="credentialsMatcher"> <bean class="org.apache.shiro.authc.credential.HashedCredentialsMatcher"> <property name="hashAlgorithmName" value="MD5"/> <!-- true means hex encoded, false means base64 encoded --> <property name="storedCredentialsHexEncoded" value="true"/> <!-- 迭代次数 --> <property name="hashIterations" value="1" /> </bean> </property> </bean>
如果user的密码是明文密码,但是如果这样设置
<property name="hashAlgorithmName" value="MD5"/>就等于说指定密码的加密方式是MD5,但是此时user的密码是明文密码,所以这样就会报错
解决的办法就是将user的密码用MD5加密,就要就不会有问题了
1 2
- Shiro:org.apache.shiro.authc.AuthenticationException
- Shiro:org.apache.shiro.authc.AuthenticationException
- 其他错误:org.apache.shiro.authc.AuthenticationException
- org.apache.shiro.authc.AuthenticationException: Authentication failed for token submission
- org.apache.shiro.authc.IncorrectCredentialsException 异常处理
- shrio,org.apache.shiro.authc.UsernamePasswordToken
- org.apache.shiro.authc.IncorrectCredentialsException: Submitted credentials for token [org.apache.sh
- org.apache.shiro.authc.IncorrectCredentialsException: Submitted credentials for token [org.apache.s
- shiro报错org.apache.shiro.UnavailableSecurityManagerException
- shiro的org.apache.shiro.UnavailableSecurityManagerException错误
- Shiro AuthenticationException 身份认证异常
- org.apache.shiro.authz.AuthorizationException
- Apache Shiro [urls]中配置的roles, perms, authc这样的filterChain的执行过程解析
- shiro之org.apache.shiro.UnavailableSecurityManagerException: No SecurityManager accessible
- apache shiro自定义shiro
- org.apache.shiro.SecurityUtils.getSubject().getSession()
- org.apache.shiro.cache.cacheException异常
- Apache Shiro
- JVM是什么?
- 不一样的国庆
- 堆排序算法
- Android中View的setTag和getTag方法
- JQuery 查找相关的方法
- Shiro:org.apache.shiro.authc.AuthenticationException
- 蜜汁标题,进来有料。
- 一只程序员的成长与思考
- ubuntu 14.04 下利用apt-get方式安装opencv
- MIPS指令集
- 算法入门(4)——回溯法
- (第2讲)jsp与javabean
- 方法和函数内在关系和操作用法的一点感想
- 有向图的拓扑排序——基于邻接矩阵