shiro里的主体(Principal)

shiro里的主体(Principal)

登录成功后主体为用户对象

//身份认证
@Override
protected AuthenticationInfo doGetAuthenticationInfo(AuthenticationToken authenticationToken) throws AuthenticationException {

SimpleAuthenticationInfo authenticationInfo = new SimpleAuthenticationInfo(loginUser,password,salt,getName());
return authenticationInfo;
}

猜你喜欢

转载自blog.csdn.net/Secutiry_/article/details/88941007