private JWTClaimsSet getClaimsFromToken()

in src/main/java/com/epam/digital/data/platform/kafkaapi/core/service/JwtValidationService.java [93:101]


  private JWTClaimsSet getClaimsFromToken(String accessToken) {
    try {
      return JWTParser.parse(accessToken)
          .getJWTClaimsSet();
    } catch (ParseException e) {
      var message = String.format("Error while JWT parsing: %s", e.getMessage());
      throw new JwtValidationException(message, e);
    }
  }