Class CaptchaContext.Builder
java.lang.Object
com.pingidentity.sdk.captchaprovider.CaptchaContext.Builder
- Enclosing class:
- CaptchaContext
A helper to create
CaptchaContext instance.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build theCaptchaContext.Set theCaptchaProvideraction for theCaptchaContextinstance.setInParameters(Map<String, Object> inParameters) Set the map that contains a set of input parameters.setRequest(javax.servlet.http.HttpServletRequest request) Set theHttpServletRequestfor theCaptchaContextinstance.setResponse(javax.servlet.http.HttpServletResponse response) Set theHttpServletResponsefor theCaptchaContextinstance.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setRequest
Set theHttpServletRequestfor theCaptchaContextinstance.- Parameters:
request- theHttpServletRequest.- Returns:
- the
CaptchaContext.Builder.
-
setResponse
Set theHttpServletResponsefor theCaptchaContextinstance.- Parameters:
response- theHttpServletResponse.- Returns:
- the
CaptchaContext.Builder. - Since:
- 11.3
-
setInParameters
Set the map that contains a set of input parameters.- Parameters:
inParameters- a map that contains a set of input parameters.- Returns:
- the
CaptchaContext.Builder. - Since:
- 11.3
-
setAction
Set theCaptchaProvideraction for theCaptchaContextinstance.- Parameters:
action- the action as defined inCaptchaProvider.- Returns:
- the
CaptchaContext.Builder.
-
build
Build theCaptchaContext.- Returns:
- the
CaptchaContext.
-