|
|
@@ -196,19 +196,19 @@ public class ShiroConfig {
|
|
|
return authenticationRealm;
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * 凭证匹配器 指定密码匹配规则
|
|
|
- *
|
|
|
- * @return
|
|
|
- */
|
|
|
- @Bean(name = "hashedCredentialsMatcher")
|
|
|
- public HashedCredentialsMatcher getHashedCredentialsMatcher() {
|
|
|
- CredentialsMatcher credentialsMatcher = new CredentialsMatcher();
|
|
|
- credentialsMatcher.setHashAlgorithmName("MD5");//散列算法:这里使用MD5算法;
|
|
|
- credentialsMatcher.setHashIterations(1); //散列的次数,比如散列两次,相当于 md5(md5(""));
|
|
|
- credentialsMatcher.setStoredCredentialsHexEncoded(true);
|
|
|
- return credentialsMatcher;
|
|
|
- }
|
|
|
+// /**
|
|
|
+// * 凭证匹配器 指定密码匹配规则
|
|
|
+// *
|
|
|
+// * @return
|
|
|
+// */
|
|
|
+// @Bean(name = "hashedCredentialsMatcher")
|
|
|
+// public HashedCredentialsMatcher getHashedCredentialsMatcher() {
|
|
|
+// CredentialsMatcher credentialsMatcher = new CredentialsMatcher();
|
|
|
+// credentialsMatcher.setHashAlgorithmName("MD5");//散列算法:这里使用MD5算法;
|
|
|
+// credentialsMatcher.setHashIterations(1); //散列的次数,比如散列两次,相当于 md5(md5(""));
|
|
|
+// credentialsMatcher.setStoredCredentialsHexEncoded(true);
|
|
|
+// return credentialsMatcher;
|
|
|
+// }
|
|
|
|
|
|
/**
|
|
|
* Shiro生命周期处理器
|