Пример #1
0
 public String getName() {
   return principal.getUserId();
 }
Пример #2
0
 public Collection<GrantedAuthority> getAuthorities() {
   return new HashSet<GrantedAuthority>(principal.getAuthorities());
 }