Class ActiveLivenessSessionsParam
java.lang.Object
glair.vision.model.param.sessions.BaseSessionsParam
glair.vision.model.param.sessions.ActiveLivenessSessionsParam
Represents the parameters for an Active Liveness session.
This class extends the
BaseSessionsParam class to include the number of
gestures.-
Constructor Summary
ConstructorsConstructorDescriptionActiveLivenessSessionsParam(String successUrl) Constructs an ActiveLivenessSessionsParam instance with the specified success URL. -
Method Summary
Modifier and TypeMethodDescriptionintGets the number of gestures for the Active Liveness session.voidsetNumberOfGestures(int numberOfGestures) Sets the number of gestures for the Active Liveness session.toString()Returns a JSON representation of the Active Liveness session parameters.Methods inherited from class glair.vision.model.param.sessions.BaseSessionsParam
getCancelUrl, getSuccessUrl, setCancelUrl
-
Constructor Details
-
ActiveLivenessSessionsParam
Constructs an ActiveLivenessSessionsParam instance with the specified success URL.- Parameters:
successUrl- The URL to redirect to upon successful session completion.
-
-
Method Details
-
getNumberOfGestures
public int getNumberOfGestures()Gets the number of gestures for the Active Liveness session.- Returns:
- The number of gestures.
-
setNumberOfGestures
public void setNumberOfGestures(int numberOfGestures) Sets the number of gestures for the Active Liveness session.- Parameters:
numberOfGestures- The number of gestures to set. If not set, the default will be 1.
-
toString
Returns a JSON representation of the Active Liveness session parameters.- Overrides:
toStringin classBaseSessionsParam- Returns:
- A JSON string representing the session parameters.
-