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