Пример #1
0
 /** 设定Password校验的Hash算法与迭代次数. */
 @PostConstruct
 public void initCredentialsMatcher() {
   HashedCredentialsMatcher matcher =
       new HashedCredentialsMatcher(shiroUserService.getHashAlgorithm());
   matcher.setHashIterations(shiroUserService.getHashInterations());
   setCredentialsMatcher(matcher);
 }