Class ActiveLivenessSessionsParam

java.lang.Object
glair.vision.model.param.sessions.BaseSessionsParam
glair.vision.model.param.sessions.ActiveLivenessSessionsParam

public class ActiveLivenessSessionsParam extends BaseSessionsParam
Represents the parameters for an Active Liveness session. This class extends the BaseSessionsParam class to include the number of gestures.
  • Constructor Details

    • ActiveLivenessSessionsParam

      public ActiveLivenessSessionsParam(String successUrl)
      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

      public String toString()
      Returns a JSON representation of the Active Liveness session parameters.
      Overrides:
      toString in class BaseSessionsParam
      Returns:
      A JSON string representing the session parameters.