| Conditions | 1 |
| Total Lines | 6 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | package com.osomapps.pt.auth; |
||
| 31 | Collection<String> getAuthorities() { |
||
| 32 | final Collection<? extends GrantedAuthority> authorities = |
||
| 33 | SecurityContextHolder.getContext().getAuthentication().getAuthorities(); |
||
| 34 | return authorities.stream() |
||
| 35 | .map(authority -> authority.getAuthority()) |
||
| 36 | .collect(Collectors.toList()); |
||
| 37 | } |
||
| 39 |