Class IncorrectClaimException

  • All Implemented Interfaces:
    java.io.Serializable

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

      Constructors 
      Constructor Description
      IncorrectClaimException​(java.lang.String message, java.lang.String claimName, Claim claim)
      Used internally to construct the IncorrectClaimException which is thrown when there is verification failure for a Claim that exists.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getClaimName()
      This method can be used to fetch the name for which the Claim verification failed.
      Claim getClaimValue()
      This method can be used to fetch the value for which the Claim verification failed.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • IncorrectClaimException

        public IncorrectClaimException​(java.lang.String message,
                                       java.lang.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 Detail

      • getClaimName

        public java.lang.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