@Override public String getPassword() { return user.getPassword(); }
@Override public String getUsername() { return user.getUserName(); }
private void mapAuthorities() { authorities = new HashSet<SimpleGrantedAuthority>(); for (Role role : user.getRoles()) { authorities.add(new SimpleGrantedAuthority(role.getName().name())); } }