if (user.isLocked())
throw new LockedAccountException("Account [" + username + "] is locked.");
SimpleAuthorizationInfo auth = new SimpleAuthorizationInfo();
auth.setRoles(user.getRoleStrSet());
auth.addStringPermissions(user.getPermissionStrSet());
return auth;
}
protected AuthenticationInfo doGetAuthenticationInfo(AuthenticationToken token) throws AuthenticationException {