Class IncorrectClaimException

All Implemented Interfaces:
Serializable

public class IncorrectClaimException extends InvalidClaimException
This exception is thrown when the expected value is not found while verifying the Claims.
See Also:
  • Constructor Details

    • IncorrectClaimException

      public IncorrectClaimException(String message, String claimName, Claim claim)
      Used internally to construct the IncorrectClaimException which is thrown when there is verification failure for a Claim that exists.
      Parameters:
      message - The error message
      claimName - The Claim name for which verification failed
      claim - The Claim value for which verification failed
  • Method Details

    • getClaimName

      public String getClaimName()
      This method can be used to fetch the name for which the Claim verification failed.
      Returns:
      The claim name for which the verification failed.
    • getClaimValue

      public Claim getClaimValue()
      This method can be used to fetch the value for which the Claim verification failed.
      Returns:
      The value for which the verification failed