public static List < GrantedAuthority > createAllAuthorityList ( ) { return SpPermission . getAllAuthorities ( ) . stream ( ) . map ( SimpleGrantedAuthority :: new ) . collect ( Collectors . toList ( ) ) ; }
Returns all authorities .