Obtener nombre de usuario de JWT Token Solicate Spring Boot

UserDetails userDetails = (UserDetails) SecurityContextHolder.getContext().getAuthentication()
                        .getPrincipal();
String username = userDetails.getUsername();
Grumpy Giraffe