Package com.liferay.captcha.util
Class CaptchaUtil
java.lang.Object
com.liferay.captcha.util.CaptchaUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcheck(jakarta.portlet.PortletRequest portletRequest) static voidcheck(jakarta.servlet.http.HttpServletRequest httpServletRequest) static voidenforceCaptcha(jakarta.portlet.PortletRequest portletRequest) static voidenforceCaptcha(jakarta.servlet.http.HttpServletRequest httpServletRequest) static com.liferay.portal.kernel.captcha.Captchastatic booleanisEnabled(jakarta.portlet.PortletRequest portletRequest) static booleanisEnabled(jakarta.servlet.http.HttpServletRequest httpServletRequest) static voidserveImage(jakarta.servlet.http.HttpServletRequest httpServletRequest, jakarta.servlet.http.HttpServletResponse httpServletResponse)
-
Constructor Details
-
CaptchaUtil
public CaptchaUtil()
-
-
Method Details
-
check
public static void check(jakarta.servlet.http.HttpServletRequest httpServletRequest) throws com.liferay.portal.kernel.captcha.CaptchaException - Throws:
com.liferay.portal.kernel.captcha.CaptchaException
-
check
public static void check(jakarta.portlet.PortletRequest portletRequest) throws com.liferay.portal.kernel.captcha.CaptchaException - Throws:
com.liferay.portal.kernel.captcha.CaptchaException
-
enforceCaptcha
public static void enforceCaptcha(jakarta.servlet.http.HttpServletRequest httpServletRequest) -
enforceCaptcha
public static void enforceCaptcha(jakarta.portlet.PortletRequest portletRequest) -
getCaptcha
public static com.liferay.portal.kernel.captcha.Captcha getCaptcha() -
isEnabled
public static boolean isEnabled(jakarta.servlet.http.HttpServletRequest httpServletRequest) -
isEnabled
public static boolean isEnabled(jakarta.portlet.PortletRequest portletRequest) -
serveImage
public static void serveImage(jakarta.servlet.http.HttpServletRequest httpServletRequest, jakarta.servlet.http.HttpServletResponse httpServletResponse) throws IOException - Throws:
IOException
-