Class ExitUrls
java.lang.Object
no.digipost.signature.client.direct.ExitUrls
- All Implemented Interfaces:
WithExitUrls
-
Method Summary
Modifier and TypeMethodDescriptionstatic ExitUrlsSpecify the urls the user is will be redirected to for different outcomes of a signing ceremony.static ExitUrlssingleExitUrl(URI url) A single exit url can be used if you do not need to separate resources for handling the different outcomes of a direct job.
-
Method Details
-
singleExitUrl
A single exit url can be used if you do not need to separate resources for handling the different outcomes of a direct job. This is simply a convenience factory method forof(URI, URI, URI)with the same url given for all the arguments.- Parameters:
url- The url you want the user to be redirected to upon completing the signing ceremony, regardless of its outcome
-
of
Specify the urls the user is will be redirected to for different outcomes of a signing ceremony. When the user is redirected, the urls will have an appended query parameter (StatusReference.STATUS_QUERY_TOKEN_PARAM_NAME) which contains a token required toquery for the status of the job.- Parameters:
completionUrl- the user will be redirected to this url after having successfully signed the document.rejectionUrl- the user will be redirected to this url if actively rejecting to sign the document.errorUrl- the user will be redirected to this url if any unexpected error happens during the signing ceremony.
-
getCompletionUrl
- Specified by:
getCompletionUrlin interfaceWithExitUrls
-
getRejectionUrl
- Specified by:
getRejectionUrlin interfaceWithExitUrls
-
getErrorUrl
- Specified by:
getErrorUrlin interfaceWithExitUrls
-