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 Summary
Modifier and TypeFieldDescriptionprotected static final org.slf4j.Logger
protected static final Pattern
-
Constructor Summary
ModifierConstructorDescriptionprotected
HvlOAuthAbstractCaptchaService
(HvlOAuthCaptchaVerificationProperties captchaVerificationProperties) Instantiates a new HvlOAuthAbstractCaptchaService. -
Method Summary
Modifier and TypeMethodDescriptionGets re captcha secret.getUrl()
Gets url.protected boolean
responseSanityCheck
(String response) Response sanity check boolean.protected void
securityCheck
(String response) Security check.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface tr.com.havelsan.javarch.oauth.captcha.verification.provider.HvlOAuthCaptchaService
validateCaptchaCode
-
Field Details
-
LOGGER
protected static final org.slf4j.Logger LOGGER -
RESPONSE_PATTERN
-
-
Constructor Details
-
HvlOAuthAbstractCaptchaService
protected HvlOAuthAbstractCaptchaService(HvlOAuthCaptchaVerificationProperties captchaVerificationProperties) Instantiates a new HvlOAuthAbstractCaptchaService.- Parameters:
captchaVerificationProperties
- the captchaVerificationProperties
-
-
Method Details
-
getReCaptchaSecret
Gets re captcha secret.- Specified by:
getReCaptchaSecret
in interfaceHvlOAuthCaptchaService
- Returns:
- the re captcha secret
-
getUrl
Gets url.- Specified by:
getUrl
in interfaceHvlOAuthCaptchaService
- Returns:
- the url
-
securityCheck
Security check.- Parameters:
response
- the response
-
responseSanityCheck
Response sanity check boolean.- Parameters:
response
- the response- Returns:
- the boolean
-