List<GrantedAuthority> gAuthList = new ArrayList<GrantedAuthority> ();
User user = memberBO.getUser(param);
if (user != null) {
if (user.getRoleAuthList() != null) {
for (RoleAuth role : user.getRoleAuthList()) {
CustomGrantedAuthority gAuth = new CustomGrantedAuthority(role.getRoleAuth());
gAuthList.add(gAuth);
}
} else {
CustomGrantedAuthority gAuth = new CustomGrantedAuthority("ROLE_USER");
gAuthList.add(gAuth);
}
} else {
throw new UsernameNotFoundException(username + " not found user!!!!");
}