Class HvlOAuthAbstractCaptchaService

java.lang.Object
tr.com.havelsan.javarch.oauth.captcha.verification.provider.HvlOAuthAbstractCaptchaService
All Implemented Interfaces:
HvlOAuthCaptchaService
Direct Known Subclasses:
HvlOAuthRecaptchaVerificationService

public abstract class HvlOAuthAbstractCaptchaService extends Object implements HvlOAuthCaptchaService
HvlOAuthAbstractCaptchaService is an abstract class to provide useful common method to validate captcha.
  • Field Details

    • LOGGER

      protected static final org.slf4j.Logger LOGGER
    • RESPONSE_PATTERN

      protected static final Pattern RESPONSE_PATTERN
  • Constructor Details

    • HvlOAuthAbstractCaptchaService

      protected HvlOAuthAbstractCaptchaService(HvlOAuthCaptchaVerificationProperties captchaVerificationProperties)
      Instantiates a new HvlOAuthAbstractCaptchaService.
      Parameters:
      captchaVerificationProperties - the captchaVerificationProperties
  • Method Details

    • getReCaptchaSecret

      public String getReCaptchaSecret()
      Gets re captcha secret.
      Specified by:
      getReCaptchaSecret in interface HvlOAuthCaptchaService
      Returns:
      the re captcha secret
    • getUrl

      public String getUrl()
      Gets url.
      Specified by:
      getUrl in interface HvlOAuthCaptchaService
      Returns:
      the url
    • securityCheck

      protected void securityCheck(String response)
      Security check.
      Parameters:
      response - the response
    • responseSanityCheck

      protected boolean responseSanityCheck(String response)
      Response sanity check boolean.
      Parameters:
      response - the response
      Returns:
      the boolean