@Override protected AuthenticationInfo doGetAuthenticationInfo(AuthenticationToken token) { SimpleAuthenticationInfo authenticationInfo = statelessAuthcImpl.doGetAuthenticationInfo(token); // 已经验证过了,不需要再密码进行验证 setCredentialsMatcher(new StatelessCredentialsMatcher()); return authenticationInfo; }
@Override protected AuthorizationInfo doGetAuthorizationInfo(PrincipalCollection principals) { return statelessAuthcImpl.doGetAuthorizationInfo(principals); }