Class CaptchaResponse

    • Method Detail

      • responseCode

        public final Integer responseCode()

        The HTTP response code indicating the status of the CAPTCHA token in the web request. If the token is missing, invalid, or expired, this code is 405 Method Not Allowed.

        Returns:
        The HTTP response code indicating the status of the CAPTCHA token in the web request. If the token is missing, invalid, or expired, this code is 405 Method Not Allowed.
      • solveTimestamp

        public final Long solveTimestamp()

        The time that the CAPTCHA was last solved for the supplied token.

        Returns:
        The time that the CAPTCHA was last solved for the supplied token.
      • failureReasonAsString

        public final String failureReasonAsString()

        The reason for failure, populated when the evaluation of the token fails.

        If the service returns an enum value that is not available in the current SDK version, failureReason will return FailureReason.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from failureReasonAsString().

        Returns:
        The reason for failure, populated when the evaluation of the token fails.
        See Also:
        FailureReason
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)