code: public CommonProfile validateToken(final String token) {
          final TokenCredentials credentials = new TokenCredentials(token);
          try {
              validate(credentials, null);
          } catch (final HttpAction e) {
              throw new TechnicalException(e);
          } catch (final CredentialsException e) {
              logger.info("Failed to retrieve or validate credentials: {}", e.getMessage());
              logger.debug("Failed to retrieve or validate credentials", e);
              return null;
          }
          return credentials.getUserProfile();
      }
docs: Validates the token and returns the corresponding user profile.
  
  @param token the JWT
  @return the corresponding user profile