Class BaseSessionsParam

java.lang.Object
glair.vision.model.param.sessions.BaseSessionsParam
Direct Known Subclasses:
ActiveLivenessSessionsParam, KtpSessionsParam

public class BaseSessionsParam extends Object
Represents the basic parameters for a session. This class includes success and cancel URLs that can be set for the session.
  • Constructor Details

    • BaseSessionsParam

      public BaseSessionsParam(String successUrl)
      Constructs a BasicSessionsParam instance with the specified success URL.
      Parameters:
      successUrl - The URL to redirect to upon successful session completion.
  • Method Details

    • getSuccessUrl

      public String getSuccessUrl()
      Gets the success URL for the session.
      Returns:
      The success URL.
    • getCancelUrl

      public String getCancelUrl()
      Gets the cancel URL for the session.
      Returns:
      The cancel URL. If set, GLAIR will show a back button on the prebuilt-UI, and your user will be directed to this URL when the button is clicked.
    • setCancelUrl

      public void setCancelUrl(String cancelUrl)
      Sets the cancel URL for the session.
      Parameters:
      cancelUrl - The URL to redirect to if the session is canceled. If set, GLAIR will show a back button on the prebuilt-UI, and your user will be directed to this URL when the button is clicked.
    • toString

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