Class BaseSessionsParam
java.lang.Object
glair.vision.model.param.sessions.BaseSessionsParam
- Direct Known Subclasses:
ActiveLivenessSessionsParam,KtpSessionsParam
Represents the basic parameters for a session.
This class includes success and cancel URLs that can be set for the session.
-
Constructor Summary
ConstructorsConstructorDescriptionBaseSessionsParam(String successUrl) Constructs a BasicSessionsParam instance with the specified success URL. -
Method Summary
Modifier and TypeMethodDescriptionGets the cancel URL for the session.Gets the success URL for the session.voidsetCancelUrl(String cancelUrl) Sets the cancel URL for the session.toString()Returns a JSON representation of the session parameters.
-
Constructor Details
-
BaseSessionsParam
Constructs a BasicSessionsParam instance with the specified success URL.- Parameters:
successUrl- The URL to redirect to upon successful session completion.
-
-
Method Details
-
getSuccessUrl
Gets the success URL for the session.- Returns:
- The success URL.
-
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
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
Returns a JSON representation of the session parameters.
-