Class JwtValidatorResult

java.lang.Object
org.forgerock.openig.tools.jwt.validation.JwtValidatorResult

public final class JwtValidatorResult extends Object
A class that handles the results for the JWT validation.
  • Method Details

    • isValid

      public boolean isValid()
      Returns true if the JWT is valid, false otherwise.
      Returns:
      true if the JWT is valid, false otherwise.
    • getViolations

      public List<Violation> getViolations()
      Returns the list of the Violation if this JWT is invalid.
      Returns:
      the list of the Violation if this JWT is invalid.
    • getViolationsAsString

      public String getViolationsAsString()
      Aggregate getViolations() result into a comma separated string.
      Returns:
      a human-readable list of violations.