public Collection<GrantedAuthority> getAuthorities() { return new HashSet<GrantedAuthority>(principal.getAuthorities()); }