Class CaptchaContext.Builder
- java.lang.Object
-
- com.pingidentity.sdk.captchaprovider.CaptchaContext.Builder
-
- Enclosing class:
- CaptchaContext
public static class CaptchaContext.Builder extends Object
A helper to createCaptchaContextinstance.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CaptchaContextbuild()Build theCaptchaContext.CaptchaContext.BuildersetAction(String action)Set theCaptchaProvideraction for theCaptchaContextinstance.CaptchaContext.BuildersetInParameters(Map<String,Object> inParameters)Set the map that contains a set of input parameters.CaptchaContext.BuildersetRequest(javax.servlet.http.HttpServletRequest request)Set theHttpServletRequestfor theCaptchaContextinstance.CaptchaContext.BuildersetResponse(javax.servlet.http.HttpServletResponse response)Set theHttpServletResponsefor theCaptchaContextinstance.
-
-
-
Method Detail
-
setRequest
public CaptchaContext.Builder setRequest(javax.servlet.http.HttpServletRequest request)
Set theHttpServletRequestfor theCaptchaContextinstance.- Parameters:
request- theHttpServletRequest.- Returns:
- the
CaptchaContext.Builder.
-
setResponse
public CaptchaContext.Builder setResponse(javax.servlet.http.HttpServletResponse response)
Set theHttpServletResponsefor theCaptchaContextinstance.- Parameters:
response- theHttpServletResponse.- Returns:
- the
CaptchaContext.Builder. - Since:
- 11.3
-
setInParameters
public CaptchaContext.Builder setInParameters(Map<String,Object> inParameters)
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
public CaptchaContext.Builder setAction(String action)
Set theCaptchaProvideraction for theCaptchaContextinstance.- Parameters:
action- the action as defined inCaptchaProvider.- Returns:
- the
CaptchaContext.Builder.
-
build
public CaptchaContext build()
Build theCaptchaContext.- Returns:
- the
CaptchaContext.
-
-