Interface CaptchaValidator
- All Known Implementing Classes:
CaptchaValidatorImpl
@Internal
public interface CaptchaValidator
This service is used to validate a CAPTCHA challenge.
It is meant to be used by other plugins such as the Authentication plugin to interface with
Jira without having to expose underlying services.
- Since:
- v10.0
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isRequired
(String username) Returns whether a CAPTCHA challenge is required.boolean
Validates a CAPTCHA challenge.
-
Method Details
-
isRequired
Returns whether a CAPTCHA challenge is required.- Parameters:
username
- The username of the user to check against.- Returns:
- Whether the CAPTCHA is required.
-
validate
Validates a CAPTCHA challenge.- Parameters:
captchaId
- The ID of the CAPTCHA challenge to resolve.captchaChallenge
- The solution for the CAPTCHA challenge.- Returns:
- Whether the CAPTCHA challenge has been resolved successfully.
-